Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

What does super keyword do?

Category: Java

super keyword can be used to access super class method when you have overridden the method in the child class.
We can use super keyword to invoke super class constructor in child class constructor but in this case it should be the first statement in the constructor method.

Leave a Reply

Your email address will not be published. Required fields are marked *