Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 317 Bytes

File metadata and controls

7 lines (6 loc) · 317 Bytes

What are the advantages of Packages in Java?

There are various advantages of defining packages in Java.

Packages avoid the name clashes. The Package provides easier access control. We can also have the hidden classes that are not visible outside and used by the package. It is easier to locate the related classes.