Exception Handling

Q: Which of the following classes can catch all exceptions that cannot be caught?
A: Error
Q: Which part of the code gets executed, whether an exception is caught or not?
A: finally
Q: A method that potentially generates a checked exception must include this keyword in its method signature is
A: throws
Q: Which of these is the superclass of all exceptional type classes?
A: Throwable
Q: Which of the following handles the exception when a catch is not used?
A: default handler
Q: Which of these methods returns a description of an exception?
A: getMessage()
Q: Which of these exceptions handles the divide-by-zero error?
A: ArithmeticException
Q: Which of these operators is used to generate an instance of an exception that can be thrown by using throw?
A: new
Q: A single try block must be followed by which of these?
A: finally & catch
Q: Which of these are not the keywords for "exception handling"?
A: None of the above
Q: Which of these exceptions will occur if we try to access the index of an array beyond its length?
A: ArrayIndexOutOfBoundsException
Q: Which of these statements is incorrect?
A: try need not to be followed by anything
Q: Which of these methods is used to print a stack trace?
A: printStackTrace()
Q: What is the exception thrown by the parseInt() method?
A: NumberFormatException
Q: Which of these keywords is used by the calling function to guard against the exception that is thrown by the called function?
A: throws