Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
1.31/5 (6 votes)
See more:
can we use return statement in finally block of exception handling..
Posted
Updated 6-Nov-16 18:35pm
Comments
[no name] 18-Sep-12 15:10pm    
Working on your homework or sitting in an exam and trying to get the answers?
siddharth629 28-Sep-12 6:19am    
sorry
Richard C Bishop 18-Sep-12 15:10pm    
Have you tried it yet?
JOHN 602 18-Sep-12 15:15pm    
Wes Aday, nice answer ahah
Herman<T>.Instance 18-Sep-12 15:18pm    
yes you can but you can get the message that not all codepaths return a value

no we can't use return statement in finally block of exception handling.
 
Share this answer
 
We cannot use return statement in finally block.
 
Share this answer
 
Comments
[no name] 8-Nov-16 16:03pm    
Really? You mean that the solution 1 posted FOUR years ago saying the exact same thing was somehow unclear and you felt the need to say it again? Those worthless internet points must mean quite a lot to you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900