Technical Discussion :: Java
Home > Freshers > Technical Interview Questions > Java
39. What is super and this in java?How are this() and super() used with constructors?
Answer:
'super' keyword in Java is a reference variable which is used to access parent class objects.
'this' keyword is a reference variable which is used to access current objects.
Asked In :: iGate Syntel Inc. Accenture
'super' keyword in Java is a reference variable which is used to access parent class objects.
'this' keyword is a reference variable which is used to access current objects.