S

Shiva Ram • 30.44K Points
Instructor I

Q. In Java, can a "finally" block be used without a "try-catch" block?

  • (A) Yes, a "finally" block can be used independently
  • (B) Only if the "finally" block is marked as "static"
  • (C) No, a "finally" block must be associated with a "try-catch" block
  • (D) Only if the "finally" block is marked as "final"
  • Correct Answer - Option(C)
  • Views: 18
  • 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