Java OCA OCP Practice Question 1749

Question

Which symbol(s) can be used to separate exception types in a multi-catch statement?

  • I. &
  • II. |
  • III. ||
  • A. II only
  • B. III only
  • C. II and III
  • D. I, II, and III


A.

Note

The only symbol permitted to separate exception types in a multi-catch statement is a single pipe character ( |).

Option A is correct.




PreviousNext

Related