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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Disable browser cache for entire ASP.NET website?

655


Can you change a Master Page dynamically at runtime?

570


What does occur first in ASP.Net, Authentication or Authorization?

556


Explain Areas in MVC?

639


Does asp.net still recognize the global.asa file?

547






What is application session?

497


Can a .net web application consume java web service?

505


What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

1864


How will you maintain versioning in asp.net 2.0?

586


Explain about Application and Session Events ?

630


What is the function used for removing an event listener?

542


What are sharepoint pages?

489


What are web beacons used for?

537


What is autopostback true?

600


What is redirectpermanent in asp.net?

605