Java - Strings and String Handling
You want to build a thread-safe string that multiple threads can modify safely. Which class and method usage is correct?
StringBuffer is synchronized and thread-safe.append() is the correct method to add text.StringBuffer and its append() method. -> Option AStringBuffer and its append() method. [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions