1.
Packages offers modularity, like we can logically group the things,
for Example, all file related classes and interfaces can be in
package named “file”, all the system related classes and
interfaces in package named “system”, all the Graphical user
interfaces classes can go to userInterface package etc.,
2.We
can apply access restrictions using access specifiers protected,
default.
3.
Name Space Collisions avoided
4.
Java Packages can be stored in JAR format
Prevoius Next Home
No comments:
Post a Comment