Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between this(), super()?

Answer Posted / venki

this can be pointing to current object.
super can be used for accesing super class metods &varibles.
'this &super' are use full for constructers also .
thes two statements defining first satatement of
constructer.'this' is used for accesing current class
constuter.where as super is accessing super class
constructer.

Is This Answer Correct ?    56 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are strings immutable in java?

990


What is constructor in java ?

1200


What are the new features in java 8? Explain

951


What are the different types of garbage collectors in java?

1142


What is the difference between a break statement and a continue statement?

1040


What do you mean by access modifier?

1034


Explain about interthread communication and how it takes place in java?

1025


What is one third plus one third as a fraction?

939


Is void a return type?

972


How many java versions are there?

1057


Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.

2002


What is a method type?

1009


What is the purpose of static keyword in java?

963


What is a finally block? Is there a case when finally will not execute?

1085


How do you escape in java?

1082