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

What's the ASP.Net Application life cycle?

0 Answers   Wipro,


can I use session variable in App_code Class page??

3 Answers   Wipro,


What ASP.NET object encapsulates the state of the client and the browser? a) The Session object b) The Application object c) The Response object d) The Request object e) The Server object

7 Answers   Bunzl Vending, Syntax Softtech,


What are triggers of an updatepanel?

0 Answers  


You create an assembly to access data in a relational database. This assembly will be used by several ASP.NET applications on your Web server. You need to ensure that all your applications can access the assembly. Which two actions should you take (Each Answer: presents part of the solution.)? (Choose two) A . Run the Assembly Registration tool (Regasm.exe). B . Run the String Name tool (Sn.exe). C . Run the Installer tool (Intallutil.exe). D . Run the Global Assembly Cache tool (Gacutil.exe).

6 Answers   CPCL, Syntax Softtech,






Explain the differences between Server-side and Client-side code?

2 Answers  


What are the benefits of view state?

0 Answers  


What is asp.net mvc? : asp.net mvc

0 Answers  


What is caching? Explain.

0 Answers  


can we pass values from one page to another page without redirecting to that page?

6 Answers   Google, Patni, Syntel, Wipro,


Describe the role of inetinfo.exe, aspnet_isapi.dll and aspnet_wp.exe in the page loading process

1 Answers   HCL, Siebel Systems, Visual Soft,


What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?

0 Answers  


Categories