JAVA Exceptions The class at the top of exception class hierarchy is ................. Exception Throwable Object ArithmeticException Exception Throwable Object ArithmeticException ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions What is the output of the following program code?public class Test{ public static void main(String args[]){ try{ int i; return; } catch(Exception e){ System.out.print("inCatchBlock"); } finally{ System.out.println("inFinallyBlock"); } }} inFinallyBlock The program will return without printing anything inCatchBlock inFinallyBlock inCatchBlock inFinallyBlock The program will return without printing anything inCatchBlock inFinallyBlock inCatchBlock ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which of the below statement is/are true about Error?A. An Error is a subclass of Throwable.B. An Error is a subclass of Exception.C. Error indicates serious problems that a reasonable application should not try to catch.D. An Error is a subclass of IOException. A and C A and D B and C B and D A and B A and C A and D B and C B and D A and B ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Given the code. What is the result when this program is executed?public class Test{ static int x[]; static{ x[0] = 1; } public static void main(String args[]){ }} StackOverflowException is thrown IllegalStateException is thrown ArrayIndexOutOfBoundsException is thrown None of these ExceptionInInitializerError is thrown StackOverflowException is thrown IllegalStateException is thrown ArrayIndexOutOfBoundsException is thrown None of these ExceptionInInitializerError is thrown ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which keyword is used to explicitly throw an exception? throwing catch throw try throwing catch throw try ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which keyword is used to specify the exception thrown by method? finally catch throw throws finally catch throw throws ANSWER DOWNLOAD EXAMIANS APP