Wednesday 26 March 2014

Benefits Of Packages

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

5. Programmers or users can easily determine which classes are related based on package

Prevoius                                                 Next                                                 Home

No comments:

Post a Comment