Java OCA OCP Practice Question 2

Question

A catch clause may catch exceptions of which type?

  • A. The Throwable type.
  • B. The Error type.
  • C. The Exception type.
  • D. The String type.


A, B, and C.

Note

The exception caught by a catch clause must be assignable to the Throwable type. This includes the Error and Exception types.




PreviousNext

Related