Which block is always executed no matter which exception is thrown?

Long Answer
Views 27

Answer:

The finally block is always executed, whether or not an exception occurs.
It is used for cleanup operations like closing files or releasing resources.

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.