Why are strings in c# immutable?
Answer / Sanjeet Kumar Choudhary
Strings in C# are immutable to allow for efficient handling, as once a string is created it cannot be changed. This ensures that the content of a string can always be accessed without having to worry about it being modified.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we throw exception from catch block
What is the use of private constructor in c#?
Why it's said that writing into .NET Application Configuration Files is a Bad Idea?
Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?
What sort algorithm does c# use?
If you define a user defined data type by using the class keyword, is it a value type or reference type?
Can you store multiple data types in System.Array?
20 Answers Satyam, Siebel Systems,
Can abstract classes be final?
Is as keyword in c#?
what is a template?
Why is c# used?
What do you mean by default constructor?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)