Interfaces in Java – Objective

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


1. Can we implement multiple inheritance using interfaces ?

 
 
 
 

2. What happens if class doesn’t override all the specifications of interface ?

 
 
 
 

3. Can we define main method inside interface ?

 
 
 
 

4. Can we define static method inside interface ?

 
 
 
 

5. Can we instantiate interface ?

 
 
 
 

6. Can we define interface as final ?

 
 
 
 

7. What is the default access modifier of interface instance method?

 
 
 
 

8. Can we define instance variables inside interface ?

 
 
 
 

9. What type of variables can be declared inside interface?

 
 
 
 

10. Does class extends interface ?

 
 
 
 

Question 1 of 10

Share this