1Z0-809 Web TestEngine demo

Exit VCEDump 1Z0-809 Java SE 8 Programmer II
Question 10 of 32
0% complete
Q10 Single choice

Given:

class FuelNotAvailException extends Exception { }
class Vehicle {
void ride() throws FuelNotAvailException { //line n1
System.out.println("Happy Journey!");
}
}
class SolarVehicle extends Vehicle {
public void ride () throws FuelNotAvailException { //line n2
super ride ();
}
}

and the code fragment:

public static void main (String[] args) throws Exception {
Vehicle v = new SolarVehicle ();

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in