JAVA Exceptions In which of the following package Exception class exist? java.lang java.io java.file java.net java.util java.lang java.io java.file java.net java.util ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Exception generated in try block is caught in ........... block. throw catch finally throws throw catch finally throws ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which of the following blocks execute compulsorily whether exception is caught or not. throws catch throw finally throws catch throw finally ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions public class Test{ public static void main(String args[]){ try{ int a = Integer.parseInt("four"); } }}Which exception could be handled by the catch block for above? IllegalStateException ClassCastException NumberFormatException ArrayIndexOutOfBoundsException None of these IllegalStateException ClassCastException NumberFormatException ArrayIndexOutOfBoundsException None of these 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[]){ }} StackOverflowException is thrown ArrayIndexOutOfBoundsException is thrown None of these ExceptionInInitializerError is thrown IllegalStateException is thrown StackOverflowException is thrown ArrayIndexOutOfBoundsException is thrown None of these ExceptionInInitializerError is thrown IllegalStateException is thrown ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions try{ File f = new File("a.txt");}catch(Exception e){}catch(IOException io){}Is this code create new file name a.txt ? Compilation Error true None of these false Compilation Error true None of these false ANSWER DOWNLOAD EXAMIANS APP