Quiz · Strings · lesson 9 of 10Quiz — why StringBuilderWhy build a long string in a loop with StringBuilder rather than with +=?[A]+= edits the string in place, so every other variable that leads to the same string changes along with it. StringBuilder gives each part of the program its own private copy of the text, which keeps the other variables safe.[B]Both are equally fast: the compiler turns a loop of += into StringBuilder calls on its own, so the program runs exactly the same either way. Writing StringBuilder by hand only makes the intent clearer to the people who read the code.[C]A string cannot change, so each += creates a new string and copies all the text built so far into it, and the work grows with every pass. StringBuilder adds to one buffer that can change and makes the string once, in ToString().[D]A string can hold only a few thousand characters, so a long text built with += gets cut off once it reaches that size. StringBuilder has no such cap, which is why only it can hold a long text that grows in a loop.← BackStringBuilderNext →Exercise: a palindrome