Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Core Java - Interview Questions and Answers for 'Advantages of packages' - 1 question(s) found - Order By Newest|
|Ans. Package is a namespace that organizes a set of related classes. |
Advantages of Packages
1. Better Organization of classes.
2. Saves from the problem of duplicate names as duplicate class names are allowed across different packages.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  package  advantages of packages Asked in 1 Companies Basic|
|Can I import same package/class twice? Will the JVM load the package twice at runtime?|
|Is it a good practice to use Asterick(*) in import statement to load multiple packages with single import statement ?|
|Do we need to import java.lang package ?|
|How can I change the default location of the generated jar when I command "mvn package"?|
|What is a Cursor ?|
|Name few classes that are part of java.io package ?|
|Name few classes that are part of java.lang package ?|
|Name few classes that are part of java.util package ?|
|What is the package name for CertStoreParameters class?|