What is difference between string and stringbuilder in c#?
Answer / Ravi Bhushan Mishra
In C#, String and StringBuilder are both used for handling text data, but they have some key differences. A String is an immutable reference type, meaning once it's created, its value cannot be changed. On the other hand, StringBuilder is a mutable class that allows changing of string values after creation. StringBuilder provides better performance when dealing with large amounts of dynamic text because it reuses memory for changes instead of creating new objects.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the 2 broad classifications of fields in c#?
Distinguish between continue and break statement?
how to implement singelton in C# & its uses?
What is the difference between const and readonly in c#.net?
What?s class SortedList underneath?
Can struct inherit from class c#?
How do I develop c# apps?
Is string a primitive data type in c#?
What is data binding c#?
What?s a satellite assembly?
Why do we use parameters in c#?
explain the three services model commonly know as a three-tier application.
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)