This – Super – in Java – Objective Test

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


1. Where we can use this keyword?

 
 
 
 

2. What is the use of super() method?

 
 
 
 

3. How to initialize Parent object in Inheritance?

 
 
 
 

4. Does super keyword holds Parent’s address?

 
 
 
 

5. Where we use this() method?

 
 
 
 

6. Can we print object address using ‘this’ keyword?

Since JDK 1.5

 
 
 
 

7. What is constructor chaining?

 
 
 
 

8. Can we use both super() and this() in a single constructor?

 
 
 
 

9. How JVM instantiates Parent class implicitly?

 
 
 
 

10. Can we use super() inside every non static context?

 
 
 
 

Question 1 of 10

Share this