1
What is the output of the following program?
try { Console.Write("A"); }
finally { Console.Write("B"); }DiscussEasy
Loading subject content…
Loading practice questions…
What is the output of the following program?
try { Console.Write("A"); }
finally { Console.Write("B"); }What is the output of the following program?
string? s = null;
try { Console.Write(s!.Length); }
catch (NullReferenceException) { Console.Write("null"); }What is the output of the following program?
Console.WriteLine(Check(-1));
static string Check(int v)
{
try { if (v < 0) throw new ArgumentException(); return "ok"; }
catch (ArgumentException) { return "neg"; }
}