JAVA Exceptions Which keyword is used to specify the exception thrown by method? throw catch finally throws throw catch finally throws ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions In which of the following package Exception class exist? java.file java.net java.lang java.util java.io java.file java.net java.lang java.util java.io ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions The class at the top of exception class hierarchy is ................. ArithmeticException Throwable Object Exception ArithmeticException Throwable Object Exception ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which of the following blocks execute compulsorily whether exception is caught or not. throw throws catch finally throw throws catch finally ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions What happen in case of multiple catch blocks? 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 The superclass exception must be caught first. The superclass exception cannot caught first. 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: Finally None of these Prints out: Exception Prints out: Exception Finally Compile with error Prints out: Finally None of these Prints out: Exception Prints out: Exception Finally Compile with error ANSWER DOWNLOAD EXAMIANS APP