Why String is a reference type ?
Interview question and answer by:
Bharathi Cherukuri | Posted on: 8/27/2012 | Category:
ASP.NET Interview questions | Views: 461 | |
Points: 40
Answer:
A String variable holds a reference to the object which contains each char in the string as the string types implement IEnumerable Interface. So, the strings are reference types.
Asked In: Many Interviews
|
Alert Moderator
Found interesting? Add this to: