Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
What is the output of below C# code?
string str = null;
str = str.ToString();
on 12/20/2013 | Category:
C# Interview questions
| Views: 2463 |
Select from following answers:
Throw Compile-time error
Throw Run-time error
It will throw a Run-Time error saying that Object Reference not set to an instance of an Object.
Because ToString() does not handle Null and as variable str has Null value.
Show Correct Answer
Many Interviews |
< Previous :
What is the output of below C# code? string str ...
Next > :
Comments or Responses
Login to post response
More Interview Questions by vishalneeraj-24503
How to Insert any Item inside List at specified position?
Latest Interview Questions
Your developing web application which access data from a MS sql and ha ...
Differences between ISNULL and NULLIF ?
What will be output of following function when called? public strin ...
DB2 - Display the employee details who are working from more than 1 an ...
DB2 - Fetch the current date and time in the following format 24/APR ...
DB2 - Find the NAMEs that have an even number of letters in them
DB2 - Find the count of departments having average salary greater than ...