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

how we can make a read-only class in java?

975


What are structs in java?

1040


What are the different types of garbage collectors in java?

1110


Explain the difference between an Interface and an Abstract class?

1156


What class of exceptions are generated by the java run-time system?

1154


Explain the difference between throw and throws in java?

978


What is the file type?

1003


How do you do math powers in java?

1042


What is internal variable?

996


What restrictions are placed on method overriding in java programming?

981


What are the differences between this and super keyword?

925


How will you communicate between two applets?

1139


What is getkey () in java?

982


What is difference between static variable and global variable?

1035


What is the difference between multitasking and multithreading in Java

1167