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

Explain the steps to be followed to use passport authentication.

681


How do you do client-side validation in .net? How to disable validator control by client side javascript?

616


How many types of cache are there?

621


What is the typical session identifier?

661


How we can force all the validation controls to run?

622






What are the cookies types in asp.net?

644


Where the viewstate is stored after the page postback?

753


How many validators do ASP.NET have?

687


Explain different types of Caching techniques in ASP.NET?

637


What is web api and why to use it?

653


What does it mean your session has timed out?

620


How does asp net store session ids by default?

611


Is data edited in the Repeater control?

678


Define the term Web Garden?

618


What describes a query?

613