JAVA Exceptions The class at the top of exception class hierarchy is ................. Throwable Object Exception ArithmeticException Throwable Object Exception ArithmeticException 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 ExceptionInInitializerError is thrown ArrayIndexOutOfBoundsException is thrown IllegalStateException is thrown StackOverflowException is thrown None of these ExceptionInInitializerError is thrown ArrayIndexOutOfBoundsException is thrown IllegalStateException is thrown ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Exception generated in try block is caught in ........... block. catch throw finally throws catch throw finally throws 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 ? None of these true false Compilation Error None of these true false Compilation Error ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions Which keyword is used to explicitly throw an exception? throwing throw try catch throwing throw try catch ANSWER DOWNLOAD EXAMIANS APP
JAVA Exceptions What happen in case of multiple catch blocks? The superclass exception cannot caught first. Either super or subclass can be caught first. None of these The superclass exception must be caught first. The superclass exception cannot caught first. Either super or subclass can be caught first. None of these The superclass exception must be caught first. ANSWER DOWNLOAD EXAMIANS APP