Vidyalelo
Java Programming · Q16

Exceptions

Programming · Java Programming · question 16

Q16

What is the purpose of the "finally" block in Java exception handling?

A.
To throw exceptions explicitly
B.
To specify code that must be executed regardless of whether an exception is thrown or caught
Answer
C.
To specify the exception type
D.
When an exception does not rise

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board