Which of the following are true about the "default" constructor?
Select 2 options
Correct Options are : A C
The "default" constructor is not provided even if the class declares any other constructor.
The default constructor is provided by the compiler only when a class does not define ANY constructor explicitly.
For example,
public class A { //This constructor is automatically //inserted by the compiler public A () //w ww . j a v a 2 s .com //Note that it calls the super class' //default no-args constructor super (); } } public class A { //Compiler will not generate any constructor //because the programmer has d public A (int i){ //do something } }