OCA Java SE 8 Mock Exam - OCA Mock Question 37








Question

Select the incorrect statement(s):

  1. java.lang.Throwable is the base class of all type of exceptions.
  2. If a class is a subclass of java.lang.Exception, it may or may not be a checked exception.
  3. Error is an unchecked exception.
  4. Error and checked exceptions need not be part of a method signature.




Answer



c, d

Note

A is a true statement.

B is a true statement.

C is a false statement. Error is not an exception. It does not subclass java.lang.Exception.

D is a false statement. Error need not be part of a method signature, but checked exceptions must be a part of the method signatures.