Question: Please write out the output (what would be written to the console), when this following block of code is run:
object x = null;
if (x.Equals(null)) Console.WriteLine("null");
else Console.WriteLine("not null");
Answer: Unhandled Exception: System.NullReferenceException
No comments:
Post a Comment