Question: Java: Constructor, Exception Handling and inheritance What should be the output of the following code? class AirPlane public AirPlane) throws TOException f System.out.print(AirPlane) throw new
Java: Constructor, Exception Handling and inheritance What should be the output of the following code? class AirPlane public AirPlane) throws TOException f System.out.print("AirPlane") throw new IOException); class AirJet extends AirPlane ( public AirJet) throws IOException ( try f super); ) catch (IOException e) ( System.out.print("IOException is thrown in AirJet"); public class Tester ( public static void main(String args[) ( try f new AirJet); catch (IOException e) f System.out.print ("IOException is thrown in Tester"); Pick one of the choices "AirPlanelOException is thrown in AirJet will be printed. "AirPlanelException is thrown in AirJetlOException is thrown in Tester" will be printed. O Type here to search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
