Multiple Constructors - Java Quiz Question


What will be the output of the following program.


A
Compilation error - since the Bike object is created using a constructor without parameters.
B
Compilation error - since data is assigned to member variables - mileage and diskBrakes - after the object is created.
C
Hero Honda's Shine gives a mileage of 72.5kmpl.
D
Runtime error - NullPointerException occurs while executing the program.