Answer Posted / glibwaresoftsolutions
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
How will you serialize a singleton class without violating singleton pattern?
What does \ mean in regex?
How do you implement polymorphism in our day to day life?
What are the disadvantages of object oriented programming?
What are parsers? Dom vs sax parser.
What do you understand by private, protected and public?
How many bits is a word?
What is a singleton class? Give a practical example of its usage.
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
Are arrays passed by reference in java?
Explain java coding standards for classes or java coding conventions for classes?
What are the parts of methodology?
What is difference between arraylist and list in java?
Is main a keyword in java?
what is synchronization and why is it important? : Java thread