Difference between string and stringbuilder?

Answer Posted / akash

using String
if u want to append the text then u prefer's this thing
string strTemp="a";
strTemp=strTemp+"jay";

But in case of StringBuilder
if u want to do the samething then u will get a append() function.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Garbage Collection in .Net?

796


What are functions c#?

709


Write a program in c# to find the angle between the hours and minutes in a clock?

684


What is difference between new and override in c#?

623


Are private members inherited in c#?

743


What is the advantage of generics in c#?

677


Major difference between Basic httpbinding and WShttpbinding?

761


Explain about multithreading?

747


How many types of constructors are there in c#?

635


What is c# most used for?

745


Explain about generics in c#.net?

714


What is orm in c#?

672


How to declare a property in a class?

748


Can a static class contain non static members?

739


What is msil in c#?

732