JAVA Exceptions In which of the following package Exception class exist? java.file java.io java.util java.lang java.net java.file java.io java.util java.lang java.net ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions The class at the top of exception class hierarchy is ................. Throwable ArithmeticException Object Exception Throwable ArithmeticException Object Exception 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(); }} One One Two Compilation Error Two None of these One One Two Compilation Error Two None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which exception is thrown when an array element is accessed beyond the array size? ArrayElementOutOfBounds ArrayIndexOutOfBoundsException None of these ArrayIndexOutOfBounds ArrayElementOutOfBounds ArrayIndexOutOfBoundsException None of these ArrayIndexOutOfBounds ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which exception is thrown when divide by zero statement executes? NullPointerException ArithmeticException None of these NumberFormatException NullPointerException ArithmeticException None of these NumberFormatException ANSWER DOWNLOAD EXAMIANS APP
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