An exception thrown by a function in the _______ block can be caught in the subsequent catch block. 

  • try 
  • throw 
  • return 
  • main
In the 'try' block, we place the code that might throw an exception. Any exception that occurs inside the 'try' block can be caught by the subsequent 'catch' block, allowing for appropriate error handling.
Add your answer
Loading...

Leave a comment

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