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

Can a constructor be made final?

673


Which is better arraylist or vector?

583


What is a function argument in java?

530


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

553


What is sizeof () operator?

578






Write code of any action class?

555


Explain covariant method overriding in java.

553


What if I write static public void instead of public static void in java?

589


What is the purpose of tostring() method in java?

566


Explain about the performance aspects of core java?

564


worst case complexities of Quick sort and Merge sort.

617


What do you mean by exception handling in Java?

670


What are the important features of Java 9 release?

546


What is the collections api?

579


What is logical variable?

524