V

Vijay Sangwan • 28.62K Points
Instructor II

Q. In Java, can a method throw any checked exception without declaring it using "throws"?

  • (A) Only if the exception is marked as "static"
  • (B) Only if the method is marked as "final"
  • (C) No, a method must declare checked exceptions using the "throws" keyword
  • (D) Yes, a method can throw any checked exception without declaration
  • Correct Answer - Option(D)
  • Views: 16
  • Filed under category JAVA

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.


Question analytics