See below given code. Will it run?

try
{
Response.Write("In Try block");
}
finally
{
Response.Write("In Finally block.");
}

 Posted by Virendradugar on 12/30/2009 | Category: ASP.NET Interview questions | Views: 2615
Answer:

Yes, it will run.

A try block can exists without a catch block if there is finally block. Try block is only valid when there is either a catch block or finally block.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response