What is a package and what are its advantages ?
Javasearch.buggybread.com

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.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. What is a package and what are its advantages ?Core Java
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


Related Questions

  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?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: