0 votes
110 views
in JAVA by (98.9k points)
edited

What are the advantages of Packages in Java?

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer

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.

Related questions

0 votes
1 answer 113 views
asked Aug 9, 2022 in JAVA by Doubtly (98.9k points)
0 votes
1 answer 189 views
asked Jul 20, 2022 in JAVA by Doubtly (98.9k points)
0 votes
1 answer 107 views
0 votes
1 answer 140 views
0 votes
0 answers 113 views
asked Aug 9, 2022 in JAVA by Doubtly (98.9k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

557 users

...