Pergunta de entrevista da empresa Sparta Systems

what does "finally" mean in java?

Resposta da entrevista

Sigiloso

25 de ago. de 2020

The finally keyword is used to create a block of code that follows a try block. A finally block of code always executes, whether or not an exception has occurred. Using a finally block allows you to run any cleanup-type statements that you just wish to execute, despite what happens within the protected code.