Question discussion

Select the true statement about try-catch blocks.

3686Medium DSSSB TGT Computer Science 0 replies 2 views
0

Select the true statement about try-catch blocks.

  • AA try block must have at least 1 catch to have a finally block.
  • BA try block must have only 1 finally block for each catch block.
  • CA try block can have many catches but only 1 finally block.
  • DA try block can have many catches and many finally blocks.
Correct answer: C

Explanation

A try block can have many catch blocks but only one finally block.

Discussion 0

Nobody has replied yet. Start the discussion!