Vidyalelo
Java Programming · Q25

Exceptions

Programming · Java Programming · question 25

Q25

In Java, can a "finally" block have a "return" statement?

A.
Yes, a "finally" block can have a "return" statement
Answer
B.
No, a "finally" block cannot contain a "return" statement
C.
Only if the method is marked as "static"
D.
Only if the "finally" block is marked as "final"

Answer: Option A

Solution

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