JAVA Exceptions Which keyword is used to specify the exception thrown by method? finally throws throw catch finally throws throw catch 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
JAVA Exceptions try{ File f = new File("a.txt");}catch(Exception e){}catch(IOException io){}Is this code create new file name a.txt ? true false None of these Compilation Error true false None of these Compilation Error ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Exception generated in try block is caught in ........... block. throws finally catch throw throws finally catch throw 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 Two One Two None of these Compilation Error One Two One Two None of these Compilation Error 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 None of these IllegalStateException is thrown ArrayIndexOutOfBoundsException is thrown ExceptionInInitializerError is thrown StackOverflowException is thrown None of these IllegalStateException is thrown ArrayIndexOutOfBoundsException is thrown ExceptionInInitializerError is thrown ANSWER DOWNLOAD EXAMIANS APP