A

Admin • 828.03K Points
Coach

Q. What does `super(message)` do in a custom exception class?

  • (A) Prints message
  • (B) Saves message in JVM logs
  • (C) Passes message to Exception superclass
  • (D) Throws exception

Explanation by: Admin
super(message) passes the message to the parent constructor of the exception.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.