MCQ – Java Exceptions

Q) True statement about throws and throw is/are
  1. Throws is used with the method signature.
  2. Throw is used within the method.
  3. using throws multiple exceptions can be declared
  4. All are correct.

Answer: 4


Q) Which is not an exception in Java?
  1. IO Exception
  2. Logical Exception
  3. Array Index out of bound Exception
  4. Arithmetic Exception

Answer: 2


Q) If an exception is thrown from try block in java program then which block handle the exception?
  1. Catch
  2. finally
  3. final
  4. finalize

Answer: 1


MCQ – Java Exceptions

Scroll to top