How are this and super used?

Answer Posted / sreekar reddy vanguru

Mainly this() is used to avoid hidding the field varaibles
by the varaibles of the methods which are having same name..

super() is used to invoke the super class from sub class...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can string be considered as a keyword?

558


What is included in core java?

571


Is oracle java 11 free?

517


How would you convert bytes to string?

554


What is application system?

497






Why a dead thread occurs?

566


What are the basic concepts of OOPS in java?

561


Can static methods access instance variables in java?

565


What is the difference between java applets and applications?

558


What are the types of exceptions?

581


What is constructor chaining and how is it achieved in java?

564


What is the use of arraylist in java?

518


Is hashset ordered java?

576


How many arguments can be passed to main ()?

518


What is the dot operator?

561