Is string a value type or a reference type?

Answer Posted / senthilselvan

string is a reference type.

string str = "hello";
char x = str[1];

here what we do is handling the memory.
which type allows you to handle the memory is reference types.

Is This Answer Correct ?    26 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you use viewstate?

725


Elaborate differentiation between ViewState and SessionState?

824


What is session state server?

830


What is preprocessor in .net?

689


Explain the difference between response.redirect vs server.transfer

836






What is the behavior of a Web browser when it receives an invalid element?

822


What is viewstate information stored?

823


Explain client-side scripting?

747


What setting must be added in the configuration file to deny a particular user from accessing the secured resources?

704


How are sessions stored?

726


What is server side session management?

694


How many web.config files can I have in an application?

724


What is the difference between a page theme and a global theme?

725


What is a user developed application?

704


Where code pages are used?

875