What is difference between string and stringbuffer in c#?
Answer / Nirpendra Singh
In C#, String is an immutable class while StringBuilder is a mutable class. This means that whenever you change the contents of a String, a new object is created, whereas StringBuilder allows for efficient changes to its contents by reusing memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a struct in C#?
What is the difference between final finally and finalize in c#?
Why do we need to call CG.SupressFinalize?
what is the index value of the first element in an array?
What is Delegate and what is it used for ?
What is the difference between System.console.WriteLine() and System.console.Write() function?example?
Is var a data type?
What is an object and a class?
What is a property c#?
What are the types of comment in c# with examples?
What does ienumerable mean?
What is get set in c#?
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)