• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in C Sharp by
Q:

What’s the advantage of using System.Text.StringBuilder over System.String?

1 Answer

0 votes
by

StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it’s being operated on, a new instance is created.

Related questions

0 votes
asked Oct 18, 2019 in C Sharp by Robin
  • stringbuilder
  • string-in-c#
0 votes
asked Mar 16, 2021 in JAVA by Robindeniel
0 votes
asked Mar 5, 2020 in C Sharp by JackTerrance
...