Write the advantages of Packages.

DWQA QuestionsCategory: JavaWrite the advantages of Packages.
Editor Staff asked 2 months ago

Write the advantages of Packages.

1 Answers
Editor Staff answered 2 months ago

The advantages of Packages are listed below:
• Assist to avoid the name clashes.
• Deliver simpler access control on the code
• Have hidden classes which only used in the packages and not observable to outer classes
• Helps in creating a suitable hierarchical structure.