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...

What is the difference between this() and super()?

Answer Posted / gcttcs

Super should be used only in the sub classes and super() is
used to point methods of super class. where as this can be
used in both super & sub classes and this() used to point
methods in the class where it is called.

Is This Answer Correct ?    28 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between path and classpath variables?

976


What happens if we override private method?

913


What does 0 mean in boolean?

926


What is a class component?

1111


What is the difference between this() and super() in java?

977


What is the purpose of assert keyword used in jdk1.4.x?

1008


How big is a 32 bit integer?

989


What is the static import?

1041


What is a buffer in computer?

935


What is the hashcode () and equals () used for?

951


whatis Home interface and Remoteinterface? with example?

1943


What are the main uses of the super keyword?

920


Mention some interfaces implemented by linked list in java.

970


Why is static used?

978


How do you print array in java?

918