What will be the output of the following program?
Correct Answer : D
Student class, there are two constructors defined. One takes
int parameters and the other takes only the
String. Since constructors are manually defined, the compiler will not include any default constructor. So, when we create the object
kiran, using the default constructor, the compilation fails.
Hence, the answer is D.