Which of the following is incorrect about System.Text.StringBuilder and System.String?

Options
- StringBuilder is more efficient when there is a large amount of string manipulation
- Strings are immutable, so each time a string is changed, a new instance in memory is created.
- StringBuilder is mutable; when you modify an instance of the StringBuilder class, you modify the actual string, not a copy
- Strings are mutable in .Net


CORRECT ANSWER : Strings are mutable in .Net

Discussion Board
strings

See guys,the question is what is incorrect about System.Text.StringBuilder and System.String?

so string is mutable is incorrect.so its answer is correct

pallavi 08-13-2014 12:33 AM

strings are immutable

This answer is incorrect.

Steve Schlichter 08-12-2014 12:33 PM

String is mutable and string is immutable.

String is written with a UpperCase und that means it is derivated from Object. Objects are allways mutable, this is the reason why you should always return clones.




s 08-1-2014 05:50 AM

String is mutable and string is immutable.

String is written with a UpperCase und that means it is derivated from Object. Objects are allways mutable, this is the reason why you should always return clones.




s 08-1-2014 05:50 AM

Plz correct the answer

Strings are immutable, so each time a string is changed, a new instance in memory is created.

Krishan Gopal Shukla 06-24-2014 01:07 PM

comment

See guys,the question is what is incorrect about System.Text.StringBuilder and System.String?

so string is mutable is incorrect.so its answer is correct

pallavi 03-2-2014 04:07 AM

string vs stringbuilder

Strings are mutable in .Net. its wrong.

mutable means it access its instance when you going to edit or modify string you not create new string the entire changes done in original (previous) string,

when immutable mean when ever you make changes it create new string every time

nipul 02-17-2014 01:52 AM

Discuss

Your Ans. Strings are mutable in .Net. its wrong.

StringBuilder is more efficient when there is a large amount of string manipulation
- Strings are immutable, so each time a string is changed, a new instance in memory is created.
- StringBuilder is mutable; when you modify an instance of the StringBuilder class, you modify the actual string, not a copy

Anil Kumar 01-3-2014 10:43 AM

Write your comments

 
   
 
 

Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement