If we write return statement in finally block will it works
fine or throws any error?



If we write return statement in finally block will it works fine or throws any error?..

Answer / alb.shah

Answer Is NO. We cannot have return in finally block...
we get the following error.
Control cannot leave the body of a finally clause
returns void, a return keyword must not be followed by an
object expression

Is This Answer Correct ?    14 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

hi wrever i go thy r asking depth abt 3-tier architecture i.e, hw to deploy 3 layers into 3 servers i do nt have much idea on deployment. can any one send me the tips or code if u hav kindly mail me.

1 Answers   Wipro,


By default, Web API sends HTTP response with which of the following status code for all uncaught exception?

0 Answers  


What is Stateless ASP or ASP.Net?

2 Answers   Accenture,


what is view state and its use

10 Answers   DELL, Efextra, HCL,


How do you implement postback with a text box?

0 Answers  






What are Authentication and Authorization?

0 Answers  


What is aspect-oriented programming?

0 Answers  


whats the purpose of AUTOPOSTBACK property for the controls in asp.net?

4 Answers  


How many types of triggers are there in update panel?

0 Answers  


What is the difference between user control an custom control?

0 Answers  


what is session,cokkies in asp.net??

5 Answers  


What are the 3 types of web?

0 Answers  


Categories