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.

Discussion Board
b

b

xd 09-22-2023 06:17 AM

Request for Explanation

I am not understanding the answer for this why option b is wrong on this question any how the default constructor will call super() only right

Pavan 09-3-2020 02:04 PM

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