The ________ block can be used to handle different types of exceptions in a single block.

  • catch
  • finally
  • throw
  • try
The try block is used to enclose a section of code that may throw exceptions. You can have multiple catch blocks after a single try block to handle different types of exceptions, making it possible to handle various exceptions in a unified way.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *