Chapter 8

Strings, Regex & Java 8+ Features — quiz

5 questions · ~4 min

Chapter 8 quiz

Question 1 of 5

You're building a long error message by concatenating values inside a loop with `msg += line;`. Why might a reviewer push you toward StringBuilder?