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 / prabu.b

1)Super() always calling the constructor of immediate
super class, super() must always be the first statements
executed inside a subclass constructor.

2)You cannot use this() and Super() in the same constructor.

Is This Answer Correct ?    23 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between getting and load method?

1286


What is nullpointerexception in java?

1239


What are constants and how to create constants in java?

1036


what is object-oriented programming in java?

1104


Is double bigger than float?

1039


What do you mean by inner class in java? Explain

1117


Is arraylist an object in java?

1228


What is the difference between member variables initialization and assignment in a constructor?

1334


How we can declare a static variable?

1150


What do you understand by copy constructor in java?

979


What are different types of control structures?

1030


What is the basic difference between string and stringbuffer object?

1138


What is the use of 'super' keyword inside a constructor?

1017


What is the nested interface?

1160


What is the latest java version?

1114