Can we use this () and super () in a method 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  What exchange is IMX on?

Leave a Reply

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