JAVA Exceptions Which exception is thrown when divide by zero statement executes? NumberFormatException None of these ArithmeticException NullPointerException NumberFormatException None of these ArithmeticException NullPointerException 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(); }} Two One Compilation Error None of these One Two Two One Compilation Error None of these One Two ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which exception is thrown when an array element is accessed beyond the array size? ArrayElementOutOfBounds ArrayIndexOutOfBounds None of these ArrayIndexOutOfBoundsException ArrayElementOutOfBounds ArrayIndexOutOfBounds None of these ArrayIndexOutOfBoundsException ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Given the code. What is the result when this program is executed?public class Test{ static int x[]; static{ x[0] = 1; } public static void main(String args[]){ }} ArrayIndexOutOfBoundsException is thrown ExceptionInInitializerError is thrown StackOverflowException is thrown IllegalStateException is thrown None of these ArrayIndexOutOfBoundsException is thrown ExceptionInInitializerError is thrown StackOverflowException is thrown IllegalStateException is thrown None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which of the following blocks execute compulsorily whether exception is caught or not. finally catch throws throw finally catch throws throw ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions The class at the top of exception class hierarchy is ................. Object ArithmeticException Exception Throwable Object ArithmeticException Exception Throwable ANSWER DOWNLOAD EXAMIANS APP