|
Share this post! |
| Vote this! |
|
Introduction
A package is a namespace that organizes a set of related classes and
interfaces to provide access protection and namespace management.You can
think of packages as being similar to different folders on your
computer. Software written in the Java programming language can be
composed of hundreds or thousands of individual classes, it makes sense
to keep things organized by placing related classes and interfaces into
packages. JDK has set of previously defined packages consisting of
relevant classes.E.g IO package contains all the classes related to
input output. Moreover, many times when we get a chance to work on a
small project, one thing we intend to do is to put all java files into
one single directory. It is quick, easy and harmless. However if our
small project gets bigger, and the number of files is increasing,
putting all these files into the same directory would be a nightmare for
us. In java we can avoid this sort of problem by using Packages.
more...
Highly
Recommended Reading After Above
java
0 comments:
Post a Comment