A

Admin • 828.03K Points
Coach

Q. What does the `throws` keyword indicate in a method declaration?

  • (A) It handles the exception
  • (B) It generates an exception
  • (C) It declares that a method may throw an exception
  • (D) It prevents exception

Explanation by: Admin
The `throws` keyword is used to declare that a method may throw an exception.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.