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 java objectoutputstream?

541


What is flush buffer?

516


Who found java?

548


Why do you canvas?

609


Why javac is not recognized?

517






Is .net better than java?

552


What are advantages of using Java?s layout managers than windowing systems?

1855


What is advantage of java?

540


What is class level lock ?

608


What is increment in java?

522


What are the types of java languages?

515


What is the similarity between dynamic binding and linking?

603


Which eclipse is best for java?

520


What is the static variable?

571


What is json parser in java?

613