1.

Will The Following Code Compile And Run?

Answer»

STRING str = null;
Console.WriteLine(str.Length);
The above code will compile, but at RUNTIME System.NullReferenceException will be THROWN

string str = null;
Console.WriteLine(str.Length);
The above code will compile, but at runtime System.NullReferenceException will be thrown



Discussion

No Comment Found