280.
When will the code inside the finally clause will be executed

try
{
      Some code
}
catch(Exception ex)
{
      do some thing
}
finally
{
      MessageBox.Show("I am in finally block!");
}

The finally block is useful for cleaning up any resources allocated in the try block as well as running any code that must execute even if there is an exception. Control is always passed to the finally block regardless of how the try block exits.