Question: 4) What will be the output of the program? public class ExceptionTest { public static void main(String[] args) { System.out.println(exception Test()); } public static
4) What will be the output of the program? public class ExceptionTest { public static void main(String[] args) { System.out.println(exception Test()); } public static int exceptionTest() int i=63 try{ return i%3B } catch (Exception e) { i=10%; } finally { } System.out.println("In finally block"); return i; } } 5) What is wrong with following Java Exception code? public static void start() { } System.out.println("Java Exception"); public static void main(String args[]) { try{ start(); }catch (IOException ioe) { } } ioe.printStackTrace();
Step by Step Solution
3.57 Rating (157 Votes )
There are 3 Steps involved in it
Question 4 Program Output The output of the given Java program will be In finally block 6 Explanatio... View full answer
Get step-by-step solutions from verified subject matter experts
