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 / puneet khanna

this is used to either call another constructor of the same
class whose object is used to call a method; or whose
constructor is being used to instantiate a class.
This refers to the current object whose reference variable
is used to call method or this refers to the current object
in action,
Super refers to the immediate super class, super(); is
itself placed in the constructor of the class whose super
class doesnt has a constructor declared;for consructor
chaining mechanism.

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main function in java?

1047


What are the different types of sorting in java?

961


What is the major advantage of external iteration over internal iteration?

1090


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

1084


What is a method vs function?

1017


What is reflexive association?

1771


What is an object in java?

1012


What is the static field modifier?

1105


What is thread safe java?

895


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

1216


What is the use of isempty in java?

1002


Define jit compiler?

1116


Why deletion in linkedlist is fast than arraylist?

1074


What is java instanceof operator?

1019


What is the difference between multitasking and multithreading in Java

1167