Quiz · Exceptions · lesson 5 of 9
Quiz — return and finally
What does the program print?
Console.WriteLine(Get());
int Get()
{
try
{
return 1;
}
finally
{
Console.Write("B");
}
}What does the program print?
Console.WriteLine(Get());
int Get()
{
try
{
return 1;
}
finally
{
Console.Write("B");
}
}