JAVA Exceptions try{ File f = new File("a.txt");}catch(Exception e){}catch(IOException io){}Is this code create new file name a.txt ? None of these false true Compilation Error None of these false true Compilation Error ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions The class at the top of exception class hierarchy is ................. Exception Object Throwable ArithmeticException Exception Object Throwable ArithmeticException ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which exception is thrown when divide by zero statement executes? ArithmeticException NullPointerException NumberFormatException None of these ArithmeticException NullPointerException NumberFormatException None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which of the following blocks execute compulsorily whether exception is caught or not. throws throw finally catch throws throw finally catch ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which exception is thrown when an array element is accessed beyond the array size? ArrayIndexOutOfBoundsException ArrayElementOutOfBounds ArrayIndexOutOfBounds None of these ArrayIndexOutOfBoundsException ArrayElementOutOfBounds ArrayIndexOutOfBounds None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions What is the output of the following program code?public class Test{ public static void main(String args[]){ try{ int i; return; } catch(Exception e){ System.out.print("inCatchBlock"); } finally{ System.out.println("inFinallyBlock"); } }} inCatchBlock inCatchBlock inFinallyBlock inFinallyBlock The program will return without printing anything inCatchBlock inCatchBlock inFinallyBlock inFinallyBlock The program will return without printing anything ANSWER DOWNLOAD EXAMIANS APP