What will be the length of string type variable which is just declared but not assigned any value?

 Posted by Virendradugar on 1/5/2010 | Category: C# Interview questions | Views: 4415

As variable is not initialized and it is of reference type. So it's length will be null and it will throw a run time exception of "System.NullReferenceException" type, if used.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response