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 ClassCastException IllegalStateException NumberFormatException None of these ArrayIndexOutOfBoundsException ClassCastException IllegalStateException NumberFormatException 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"); } }} The program will return without printing anything inFinallyBlock inCatchBlock inFinallyBlock inCatchBlock The program will return without printing anything inFinallyBlock inCatchBlock inFinallyBlock inCatchBlock ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which exception is thrown when divide by zero statement executes? NullPointerException None of these NumberFormatException ArithmeticException NullPointerException None of these NumberFormatException ArithmeticException ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which keyword is used to specify the exception thrown by method? throws catch finally throw throws catch finally throw ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which exception is thrown when an array element is accessed beyond the array size? ArrayIndexOutOfBounds None of these ArrayIndexOutOfBoundsException ArrayElementOutOfBounds ArrayIndexOutOfBounds None of these ArrayIndexOutOfBoundsException ArrayElementOutOfBounds ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions In which of the following package Exception class exist? java.lang java.file java.net java.util java.io java.lang java.file java.net java.util java.io ANSWER DOWNLOAD EXAMIANS APP