Java | Packages | Question 2
Which of the following is/are advantages of packages?
(A) Packages avoid name clashes
(B) Classes, even though they are visible outside their package, can have fields visible to packages only
(C) We can have hidden classes that are used by the packages, but not visible outside.
(D) All of the above
Answer: (D)
Explanation:
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.



