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

Why do we need strings in java?

524


What is the purpose of methodology?

639


What is java english?

490


What do you understand by classes in java?

555


What is memory leak and how does java handle it?

517






What are java packages? What's the significance of packages?

625


What is command line argument in java?

605


What are the two types of java programming?

533


Can we override the static method?

576


java program with complete 4 oops concepts implemented example

2726


What is a boolean used for?

588


Is minecraft java edition free?

576


How to connect to a remote database using Applet?

2040


What does yield method of the thread class do?

578


Is namespace same as package in java?

538