JAVA Exceptions Which of the following blocks execute compulsorily whether exception is caught or not. catch throws finally throw catch throws finally throw 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); }} 3.5 Error occured None of these Compilation Error 3 3.5 Error occured None of these Compilation Error 3 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 Which exception is thrown when an array element is accessed beyond the array size? None of these ArrayIndexOutOfBoundsException ArrayIndexOutOfBounds ArrayElementOutOfBounds None of these ArrayIndexOutOfBoundsException ArrayIndexOutOfBounds ArrayElementOutOfBounds ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions In which of the following package Exception class exist? java.net java.util java.io java.file java.lang java.net java.util java.io java.file java.lang 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[]){ }} ExceptionInInitializerError is thrown IllegalStateException is thrown StackOverflowException is thrown ArrayIndexOutOfBoundsException is thrown None of these ExceptionInInitializerError is thrown IllegalStateException is thrown StackOverflowException is thrown ArrayIndexOutOfBoundsException is thrown None of these ANSWER DOWNLOAD EXAMIANS APP