JAVA Exceptions Exception generated in try block is caught in ........... block. finally throw throws catch finally throw throws catch 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 None of these ArrayIndexOutOfBoundsException NumberFormatException ClassCastException IllegalStateException None of these ArrayIndexOutOfBoundsException NumberFormatException ClassCastException ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which of the below statement is/are true about Error?A. An Error is a subclass of Throwable.B. An Error is a subclass of Exception.C. Error indicates serious problems that a reasonable application should not try to catch.D. An Error is a subclass of IOException. B and C A and C A and B B and D A and D B and C A and C A and B B and D A and D 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 ? false true Compilation Error None of these false true Compilation Error None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which keyword is used to explicitly throw an exception? throw try catch throwing throw try catch throwing 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); }} None of these Compilation Error 3 Error occured 3.5 None of these Compilation Error 3 Error occured 3.5 ANSWER DOWNLOAD EXAMIANS APP