Which of the following statements is TRUE about the finally block?

Last Updated :
Discuss
Comments

Which of the following statements is TRUE about the finally block?

It executes only if an exception occurs

It executes only if no exception occurs


It always executes, even if an exception occurs

It executes only if explicitly called

Share your thoughts in the comments