Which statement is true regarding the creation of default constructor?

Options
- The default constructor initializes local variables.
- The default constructor initializes the instance variables declared in the class.
- The default constructor invokes the constructor of the superclass.
- When class has only constructor with parameter, the compiler creates a Default constructor


CORRECT ANSWER : The default constructor initializes the instance variables declared in the class.

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement