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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default execution method in java?

618


What is getkey () in java?

568


When will we prefer to use set and list in java and why?

546


What is the size of boolean variable?

568


Which language is java?

538






What is jdbc api?

531


What is difference between next () and nextline () in java?

532


What is variable explain with example?

566


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

676


Why java does not support pointers?

555


What is array length?

501


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

555


What is a class reference?

550


What type of variable is error flag?

583


What is difference between filereader and bufferedreader?

527