Packages in Java – Objective

This “Core Java Practice Test on Packages in Java” providing set of objective type questions on java Packages to test your theoretical skills and technical skills.


1. Who will create package implicitly?

 
 
 
 

2. What is fully qualified name?

 
 
 
 

3. What is CLASS LOADER SUB SYSTEM?

 
 
 
 
 

4. Can we define a class with the same name of API class?

 
 
 
 

5. How to access two different classes with same name?

 
 
 
 

6. How to create sub packages?

 
 
 
 

7. What is the main advantage of fully qualified name?

 
 
 
 

8. What is Constructor modifier type if class is public?

 
 
 
 

9. How to access protected members from another package class?

 
 
 
 

10. Can we define more than one class with the same name ?

 
 
 
 

Question 1 of 10

Share this