How are this and super used?

Answer Posted / ravikiran(aptech mumbai)

this keyword is used to refer the current instance of the
particular class where as super keyword is used to refer the
superclass members.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between overriding and overloading cases?

595


What is the basic concept of java?

533


What is difference between this and super keyword?

514


Is it necessary for the port addresses to be unique? Explain with reason.

575


How to check if linked list contains loop in java?

457






What is the program compilation process?

584


What is a class object?

498


Is string is a class in java?

521


What is floor math?

513


Is java hashset ordered?

575


What is the difference between yielding and sleeping?

554


Explain java heap space and garbage collection?

582


What is a method in java?

558


Explain about instanceof operator in java?

605


What is string pool?

625