A

Admin • 828.03K Points
Coach

Q. Can we catch multiple exceptions in a single catch block in Java 7+?

  • (A) Yes, using pipe symbol (|)
  • (B) No, only one catch allowed
  • (C) Yes, using comma
  • (D) Only for runtime exceptions

Explanation by: Admin
Java 7+ allows catching multiple exceptions using `catch (A | B e)` syntax.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.