Question: ] What is the output from the following program? Note: if an exception is not handled, then the program is terminated immediately Test t tic
] What is the output from the following program? Note: if an exception is not handled, then the program is terminated immediately Test t tic void f10 try fl0: System.out.println("12-4"); ) finally throw new RuntimeException("hello"); l end fl0 3 l/ end 120 tatic void 120 public static void main(Stringl argv) try try catch (Exception e) f System.out.println("12-1"); 120: catch (Exception e) System.out.println"main-1"); finally finally tSystem.out.println"12-2"); try System.out.println"main-2");) f10: catch (Exception e) try 120: finally t System.out.printin("main-3"); System.out.println"12-3"):) System.out.println("main-4"); /ll end main0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
