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 is a numeric string?

559


What are the different types of inner classes?

531


What is supplier in java?

556


If try block is successfully executed, Then Is Finally block executed?

608


What is isa relationship?

562






What is methodological framework?

573


Which number is denoted by leading 0x or 0x in java?

562


What does || mean in code?

543


What is tcp and udp?

599


What is string in java?

558


What are different types of control structures?

491


What is difference between array and arraylist in java?

460


What do you mean by global variable?

524


What is the hashcode () and equals () used for?

531


what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread

559