How are this and super used?

Answer Posted / niranjanravi

this is used to resolve the naming collision between class
scope var. and method scpoe var.
super is used to the resolve the naming collision between
superclass member and subclass member.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are extraneous variables examples?

513


What is object cloning in Java?

621


What is udp in java?

521


Is age a discrete variable?

516


Can we print null in java?

554






Explain naming conventions for packages?

564


What is sorting in java?

518


Explain what is Marker interface?

600


Similarity and difference between static block and static method ?

526


Is it possible for yielded thread to get chance for its execution again ?

536


What is the purpose of the file class in java programming?

516


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

548


Give me some null interfaces in java?

590


What is the ==?

454


What is the static import?

573