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 does flag mean in java?

544


How does java pattern compile work?

548


How does varargs work in java?

611


Can one thread block the other thread?

608


How arrays are stored in memory in java?

513






Can a static block throw exception?

660


What is the different types of functions?

561


Can we use return in constructor?

496


What is the difference between static and non-static variables in java programming?

521


What is an object in java?

560


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

536


How does enum work in java?

549


What do you mean by singleton class in java?

516


What is java full form?

532


Does importing a package imports its sub-packages as well in java?

554