finally block example in Java try catch

preview_player
Показать описание
Demonstration of a finally block, which will always execute, regardless of the outcome of the try-catch. This is ideal for things that must be done, regardless of whether or not an exception was thrown, like closing database connections.

Рекомендации по теме
join shbcf.ru