Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Is string reference type / value type?

Answer Posted / baranee

Hi,

String is a value type but its not advisable to use for the
frequent usage of string.String is a class which has
default size of 16.If the value exceeds it will create one
more instance and left the old reference which is still not
cleared in memory. So we can use stringbuilder value type
which doubles the size when the default size exceeds.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the difference between a static method and a non static method c#?

959


Which of these statements correctly declares a two-dimensional array in c#?

1023


What is a constructor in c#?

1275


What are the advantages of properties in c#?

917


How many aware interfaces are there?

861


What is serialization in unity?

866


What is datagrid c#?

895


Explain what is an interface in c#?

903


What is the difference between Singleton design pattern and Factory design pattern?

909


What is a function c#?

918


What is namespace explain with example?

817


Is hashset ordered c#?

914


Does c# support multiple inheritance (mi)?

896


Define the term immutable ?

1015


User's session is explicitly killed by which method ?

906