JAVA Exceptions Which of the following blocks execute compulsorily whether exception is caught or not. throws finally catch throw throws finally catch throw ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which exception is thrown when divide by zero statement executes? None of these NullPointerException ArithmeticException NumberFormatException None of these NullPointerException ArithmeticException NumberFormatException ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Determine output of the following program code?public class Test{ public static void main(String args[]){ int i; try{ i = calculate(); System.out.println(i); }catch(Exception e){ System.out.println("Error occured"); } } static int calculate(){ return (7/2); }} Compilation Error 3.5 Error occured None of these 3 Compilation Error 3.5 Error occured None of these 3 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"); } }} inCatchBlock inCatchBlock inFinallyBlock inFinallyBlock The program will return without printing anything inCatchBlock inCatchBlock inFinallyBlock inFinallyBlock The program will return without printing anything ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions What will be the output?class MyClass{ public String test(){ try{ System.out.print("One"); return ""; } finally{ System.out.print("Two"); } }}public class Test{ public static void main(String args[]){ MyClass m = new MyClass(); m.test(); }} Compilation Error Two One Two One None of these Compilation Error Two One Two One None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions In which of the following package Exception class exist? java.util java.file java.lang java.net java.io java.util java.file java.lang java.net java.io ANSWER DOWNLOAD EXAMIANS APP