A

Admin • 833.24K Points
Coach

Q. How do you define a custom exception in Java?

  • (A) Extend Runtime
  • (B) Extend Exception class
  • (C) Use throw only
  • (D) Define method in Throwable

Explanation by: Admin

To create a custom exception, extend the Exception class.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.