Question:
What will be the output for follwing code
try
{
Console.WriteLine("Before Exception");
throw new Exception("Raising exception");
Console.WriteLine("After Exception");
}
catch(Exception e)
{
Console.WriteLine("Inside Catch");
}
finally
{
Console.WriteLine("Inside Finally");
}
Console.WriteLine("Outside Try");
Answer:
Before Exception
Inside Catch
Inside Finally
Outside Try
Tuesday, January 15, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment