GeekInterview.com
Series: Subject: Topic:
Question: 569 of 1118

How are this and super used

this is used to refer to the current object instance. super is used to refer to the variablesand methods of thesuperclass of the current object instance.
Asked by: Interview Candidate | Asked on: Aug 26th, 2004
Showing Answers 1 - 1 of 1 Answers
Sandhya.Kishan

Answered On : Jun 23rd, 2012

View all answers by Sandhya.Kishan

This() is used to refer the class scope variables. and method scope variables and it is used to invoke a constructor of the same class.
super() is used to refer super-class member and subclass member and it invoke a super-class constructor.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.