In what circumstances, compiler will supply a default
constructor for a class?

Answer Posted / uthrakumar-wipro technologies

if there is no constructor was defined explicitly it will
define the default constructor...the logic in this was we
are creating a constructor with out our knowledge while
creating an object as follows....

<classname> <obj>=new <classname()>------this is
the constructor we are defining .............

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a databasemetadata?

735


How many bits is a string in java?

799


What are the methods available in a class?

837


What is meant by binding in rmi?

802


What is final variable?

710


What does int argc char * argv [] mean?

741


Explain reverse a linked list iterative solution in java?

720


What is advantage of java?

777


what do you mean by marker interface in java?

778


Can an interface have a class?

775


What is the best definition for data?

740


What is a void method?

716


what is the swingutilities.invokelater(runnable) method for? : Java thread

811


What is the difference between method overriding and overloading?

847


What is bean? Where it can be used?

848