What is the use of this () and super () statement in Java?

super keyword is used to access methods of the parent class while this is used to access methods of the current class . this is a reserved keyword in java i.e, we can’t use it as an identifier. this is used to refer current-class’s instance as well as static members.

Sizin İçin Seçtik  How do I get a SBR token?

Leave a Reply

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