New course! Every coder should learn Generative AI!
Try a free lesson+ 7
Strings is inmutable. It doesn't change. Some of its methods return a modified version but the original string remains unchanged. StringBuilder is mutable and you could change its text content.