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 is the purpose of default constructor?

1000


Is java written in c?

961


What are the differences between c++ and java?

1139


What is implicit object in java?

1080


Does hashset allow duplicates in java?

1118


What is the difference between private & public & friendly classes?

1066


What is the difference between jfc & wfc?

1071


In how many ways we can do synchronization in java?

968


Why is string class considered immutable?

1053


What’s the difference between callable and runnable?

1101


What is backdrop?

1068


How many types of flags are there?

1017


What is == in java?

1016


What is java Applet?

1104


What is the different between get and post?

974