What will be the output of ths code?
try
{
try
{
throw new NullReferenceException();
}
catch (Exception ex)
{
throw new FormatException("error", ex);
}
}
catch (Exception ex)
{
Console.WriteLine(ex.GetType().ToString());

}

 Posted by Ddd on 3/8/2011 | Category: C# Interview questions | Views: 8051 | Points: 40
Select from following answers:
  1. System.Exception
  2. System.FormatException
  3. System.NullReferenceException
  4. None
  5. All Above

Show Correct Answer


| Alert Moderator 

Comments or Responses

Login to post response