Computer Science, asked by mohitmahajan95, 1 month ago

What is the requirement of finally block

Answers

Answered by rahullokhna1226
0

Answer:

A finally block contains all the crucial statements that must be executed whether exception occurs or not. The statements present in this block will always execute regardless of whether exception occurs in try block or not such as closing a connection, stream etc.

Explanation:

hope it is useful.

please make me brainleist.

Answered by xxmrsalonexx
1

A finally block contains all the crucial statements that must be executed whether exception occurs or not. The statements present in this block will always execute regardless of whether exception occurs in try block or not such as closing a connection, stream etc.

Similar questions