JAVA Exceptions The class at the top of exception class hierarchy is ................. Throwable Exception Object ArithmeticException Throwable Exception Object ArithmeticException ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which exception is thrown when an array element is accessed beyond the array size? ArrayIndexOutOfBounds ArrayIndexOutOfBoundsException None of these ArrayElementOutOfBounds ArrayIndexOutOfBounds ArrayIndexOutOfBoundsException None of these ArrayElementOutOfBounds 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 inCatchBlock inFinallyBlock inCatchBlock inFinallyBlock The program will return without printing anything inCatchBlock inFinallyBlock inCatchBlock inFinallyBlock ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions In which of the following package Exception class exist? java.io java.file java.lang java.net java.util java.io java.file java.lang java.net java.util ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions What will be the result of executing the following code?public class Test{ public void divide(int a, int b){ try{ int c = a / b; }catch(Exception e){ System.out.print("Exception "); }finally{ System.out.println("Finally"); } public static void main(String args[]){ Test t = new Test(); t.divide(0,3); }} Prints out: Exception Finally Prints out: Exception Prints out: Finally None of these Compile with error Prints out: Exception Finally Prints out: Exception Prints out: Finally None of these Compile with error ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Exception generated in try block is caught in ........... block. throw catch throws finally throw catch throws finally ANSWER DOWNLOAD EXAMIANS APP