Can we have goto or return statement in finally block

 Posted by Jpchoudhari on 9/13/2011 | Category: .NET Framework Interview questions | Views: 6264 | Points: 40
Answer:

Answer : No

If finally block is being run as a effect of exception thrown from try block it doesn't make sense of returning any thing or leaving the finally block.
If any exception occurs in finally block it will replace original exception in try block.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response

More Interview Questions by Jpchoudhari