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?

Answers were Sorted based on User's Feedback



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

Answer / bindhu

If we do not define any constructors, the
compiler inserts an invisible zero parameter
constructor "behind the scenes".

Is This Answer Correct ?    24 Yes 0 No

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

Answer / satish

when we do not specify constructor expectly,java complier
provides default constructor at the time of compliation time

Is This Answer Correct ?    14 Yes 2 No

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

Answer / devarathnam c,kotagudibanda(po

Hi... The compiler will supply defaulst constructor when u
not supplied constructor in the program.

Is This Answer Correct ?    5 Yes 2 No

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

Answer / 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

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

Answer / ravichandra

We cannot supply any constructor in the class the compiler
supply a default constructor.

Is This Answer Correct ?    2 Yes 2 No

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

Answer / manju

In java if we do not create the constructor,by default it
will be automatically invoked at compile time

Is This Answer Correct ?    2 Yes 2 No

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

Answer / sudhakar rao

When we donot override the default constructor in a class,
which is extended implicitly by our class from java.lang
package, compiler supplies it.

Is This Answer Correct ?    2 Yes 3 No

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

Answer / www.google.com

<a href="localhost.com">locahost</a> nice post

Is This Answer Correct ?    0 Yes 1 No

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

Answer / ravikiran

when there is no other constructor with arguments is defined

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Core Java Interview Questions

How do you download stubs from Remote place?

0 Answers  


I have 2 objects inside one object(vector). how can i serialize one of them. I dont want to serialize the second one

3 Answers   ABC, L&T,


Why do I need to declare the type of a variable in java?

0 Answers  


What is the difference between array and arraylist? what is the difference between arraylist and linkedlist?

8 Answers   EDS, Matrix,


What is the use of put method?

0 Answers  


What methods are used to get and set the text label displayed by a button object?

0 Answers  


what happens when we add the objects morethan the size limit to a hashmap

1 Answers  


What is a void in java?

0 Answers  


If you are given the name of the function at run time how will you invoke the function?

0 Answers   Adobe, Yahoo,


Why array is used in java?

0 Answers  


what is the use of custom tags? with example?

1 Answers   Photon,


How to override a equals() method and what is the use?

1 Answers  


Categories