JAVA Exceptions Which of the following blocks execute compulsorily whether exception is caught or not. finally throw throws catch finally throw throws catch ANSWER DOWNLOAD EXAMIANS APP
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 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); }} Compile with error Prints out: Finally Prints out: Exception None of these Prints out: Exception Finally Compile with error Prints out: Finally Prints out: Exception None of these Prints out: Exception Finally ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which exception is thrown when an array element is accessed beyond the array size? ArrayIndexOutOfBoundsException None of these ArrayElementOutOfBounds ArrayIndexOutOfBounds ArrayIndexOutOfBoundsException None of these ArrayElementOutOfBounds ArrayIndexOutOfBounds ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions What happen in case of multiple catch blocks? The superclass exception must be caught first. The superclass exception cannot caught first. Either super or subclass can be caught first. None of these The superclass exception must be caught first. The superclass exception cannot caught first. Either super or subclass can be caught first. None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions In which of the following package Exception class exist? java.lang java.io java.net java.file java.util java.lang java.io java.net java.file java.util ANSWER DOWNLOAD EXAMIANS APP