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

When does the compiler supply a default constructor for a
class?

Answer Posted / puneet

java follows the constructor chaining and whenever a class
in instantiated,the cons of the super class is always
invoked and to follow that when a class without contructor
is loaded then the compiler at the compiler gives it a
default constructor in order to help that make instantiated
and invoke the super class cons, it autmatically makes a
consturc at compile time and writes the first line as
super(); which invokes the super class constructor.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are bind parameters?

1091


How will you print number in reverse (descending) order in BST.

1040


What is the difference between the direct buffer and non-direct buffer in java?

1080


What is the benefit of inner classes in java?

1141


What does += mean coding?

996


Which software is used for java programming?

1081


Explain different states of a thread in java?

1119


When parseint method can be used?

987


Are primitives objects?

1112


When should you use arraylist and when should you use linkedlist?

979


What are different ways of object creation in java ?

1153


What does indexof mean?

1105


why are there separate wait and sleep methods? : Java thread

1081


What is a short in java?

1120


What is the applet security manager, and what does it provide?

1046