Can we call Any Function or Method inside Finally Block?

 Posted by vishalneeraj-24503 on 11/28/2013 | Category: C# Interview questions | Views: 1022 | Points: 40
Answer:

Yes,we can.It will compile successfully.

For example:-

private int sum(int a, int b)

{
try
{
return a + b;
}
catch (Exception ex)
{
throw ex;
}
finally
{
check_value();
}
}

private void check_value()
{
}


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response