Vidyalelo
Java Programming · Q17

Exceptions

Programming · Java Programming · question 17

Q17

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

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

Answer: Option C

Solution

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