The keyword ______ is used to specify a block of code to be executed, if the same block that it is directly proceeding does not get executed.

  • break
  • continue
  • return
  • finally
The keyword finally is used to specify a block of code that will be executed regardless of whether an exception is thrown or not in a try...catch block. It ensures that cleanup code is always executed.
Add your answer
Loading...

Leave a comment

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