Learn more in the app.
View in app
Multiple Constructors - Java Quiz Question
What will be the output of the following program.
Compilation error - since the Bike object is created using a constructor without parameters.
Compilation error - since data is assigned to member variables - mileage and diskBrakes - after the object is created.
Hero Honda's Shine gives a mileage of 72.5kmpl.
Runtime error - NullPointerException occurs while executing the program.