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

How are this() and super() used with constructors?

Answer Posted / ritesh kesharwani

this refer to constructor under whose context the behavior
is called.
and super always used to invoke the argument and no argument
constructor of the super type and if super is used under the
constructors it should be the first argument.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are primitives objects?

997


Is string serializable in java?

958


What are the java ide's? Explain

958


Can we have two methods in a class with the same name?

989


What does @override mean?

1100


how to run ecllipse with jettyserver for windows environment using batch file

1997


Difference between linkedlist and arraylist.

1017


Does every java program need a main?

937


What is contract between hashcode and equal method?

977


Define how objects are stored in java?

989


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

1136


How static variable work in java?

1053


What is the syntax and characteristics of a lambda expression?

976


What is multi-catch block in java?

1015


What are peerless components in java programming?

958