Qus:    What are the advantages of Packages in Java?
Sep 10, 2022 14:27 Java 1 Answers Views: 1268 Marvinbenoit
Prev Next
Answers (1)
Preal heigh Feb 11, 2021 15:34
Answer:   There are various advantages of defining packages in Java.
o Packages avoid the name clashes.
o The Package provides easier access control.
o We can also have the hidden classes that are not visible outside and used by the package.
o It is easier to locate the related classes.

Post Your Answer
Guest User

Not sure what solution is right for you?

Choose the right one for you.
Get the help of the experts and find a solution that best suits your needs.


Let`s Connect