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

In what order do the events of an ASPX page execute. As a developer, why is it important to understand these events?

5 Answers   Syntax Softtech, TCS,


What is query string with example?

0 Answers  


Features and disadvantages of dataset ?

4 Answers   Interlink, Microsoft,


What is the difference between ASP.NET Webforms and ASP.NET MVC?

0 Answers  


Give 2 examples for scenarios when routing is not applied?

0 Answers   NA,






what is difference between java and .net

11 Answers   Base2 Infotech, Karur Vysya Bank KVB, TATA AIG, TCC,


What are the Types of state management techniques

0 Answers   Digital GlobalSoft,


How cross page posting is done in Asp.net 2.0?

3 Answers  


what is Theme in Asp.net 2.0

1 Answers   Syntel,


Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc

0 Answers  


what are debugging types in .net?

2 Answers   ABC, NIIT,


What is .netmodule and how is different from .dll and .exe

2 Answers   NIIT,


Categories