A

Admin • 828.03K Points
Coach

Q. What is the purpose of the "throws" keyword in Java method declaration?

  • (A) To indicate that the method will throw an unchecked exception
  • (B) To specify the exception message
  • (C) To indicate that the method may throw a checked exception
  • (D) To specify the exception type
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.