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

In Java, what are this() and super(), and where are you required to use them?

Answer Posted / nashiinformaticssolutions

Super() and this() are special keywords in Java that are used to invoke the constructor. This() and super() must appear as the block's initial line.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mean by exception?

1032


What is function and its uses?

1120


Why local variables are stored in stack?

977


What is the use of default method in interface in java? Explain

1006


How big is a 32 bit integer?

1044


Which is dependent variable?

899


Can we store variables in local blocks?

1351


What is the relationship between clipping and repainting under awt?

1148


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

980


What do you mean by data type?

1021


When does an object becomes eligible for garbage collection in java?

1063


how is final different from finally and finalize in java?

1056


What is generic class?

1092


Why put method is idempotent?

915


Can an interface have a class?

1002