What is the output of the following program code? int level = 13; try{ if ( level == 13) throw new RuntimeException(“There is no level ”); } catch(RuntimeException e){...


What is the output of the following program code?










 int   level = 13;


 try{


   if ( level == 13)


    throw new RuntimeException(“There is no level ”);


  }  catch(RuntimeException e){


       System.out.print(e.getMessage()); }


  finally{


  System.out.println(“Correct the program“);


 }







a.
Correct the program




b.
There is no level Correct the program




c.
No output




d.
There is no level






Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here