Answer Posted / nashiinformaticssolutions
The benefits of defining packages in Java are numerous.
Name conflicts are avoided by packages.
The package makes access control simpler.
Additionally, we can have hidden classes that are utilized by the package but are not visible from the outside.
The linked classes are easy to find.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is casting in java programming?
Why we override equals() method?
Can we create a class inside a class in java?
What is string builder in java?
What happens to the Exception object after handling an exception?
What is finally in Java?
Why hashcode is used in java?
What value is a variable of the string type automatically initialized?
What are the classes of java?
How to obtain a performance profile of java program
How can we run a java program without making any object?
Explain the pointers in Java?
Can we call virtual funciton in a constructor ?
Why is flag used in java?
Is array an object in java?