JAVA Exceptions The class at the top of exception class hierarchy is ................. ArithmeticException Exception Object Throwable ArithmeticException Exception Object Throwable 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. B and C B and D A and C A and D A and B B and C B and D A and C A and D A and B ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions public class Test{ public static void main(String args[]){ try{ int a = Integer.parseInt("four"); } }}Which exception could be handled by the catch block for above? None of these ArrayIndexOutOfBoundsException NumberFormatException IllegalStateException ClassCastException None of these ArrayIndexOutOfBoundsException NumberFormatException IllegalStateException ClassCastException ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which keyword is used to explicitly throw an exception? throw try throwing catch throw try throwing catch 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 None of these IllegalStateException is thrown ExceptionInInitializerError is thrown ArrayIndexOutOfBoundsException is thrown StackOverflowException is thrown None of these IllegalStateException is thrown ExceptionInInitializerError is thrown ArrayIndexOutOfBoundsException is thrown ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which keyword is used to specify the exception thrown by method? throws throw finally catch throws throw finally catch ANSWER DOWNLOAD EXAMIANS APP