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 / priyanka das

"super" is a keyword used to invoke superclass data members and also superclass member methods,whereas "this" is a keyword used to invoke the current class data member as well as current class member methods.

A super object can be used to retrieve super class members."this' object can be used to invoke only the current class members.


Again super() can be used to invoke the superclass constructor where as this() can be used to invoke current class constructor.

Is This Answer Correct ?    23 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need data structure in java?

1070


How would overload a function based on return type?

969


Is call by reference possible in java?

963


What is linkedlist in java?

1001


Difference between current previous versions of Java?

1019


can rmi and corba based applications interact ?

1081


What is ascii format?

993


What is the difference between a field variable and a local variable?

1112


What do you mean by local class?

1006


What are the steps that are followed when two computers connect through tcp?

992


Are arrays static in java?

1053


What is the difference between math floor and math round?

1036


what is ststic with example

2045


Can you declare an interface method static?

1060


Describe how to implement singleton design pattern in struts.

1005