Vidyalelo
Java Programming · Q15

Exceptions

Programming · Java Programming · question 15

Q15

In Java, can a "finally" block be used without a "try-catch" block?

A.
Yes, a "finally" block can be used independently
B.
Only if the "finally" block is marked as "static"
C.
No, a "finally" block must be associated with a "try-catch" block
Answer
D.
Only if the "finally" block is marked as "final"

Answer: Option C

Solution

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