Vidyalelo
Java Programming · Q26

Miscellaneous Java

Programming · Java Programming · question 26

Q26

What does the `finally` block in a Java `try-catch-finally` construct do?

A.
It creates JavaBeans
B.
It executes SQL queries
C.
It defines JavaBean properties
D.
It contains code that is always executed, regardless of whether an exception is thrown or not
Answer

Answer: Option D

Solution

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