Java - Strings and String Handling
Which statement best explains why
StringBuilder is not thread-safe while StringBuffer is?StringBuilder is not thread-safe while StringBuffer is?StringBuffer methods are synchronized, making it safe for use by multiple threads.StringBuilder methods are not synchronized, so it is faster but not thread-safe.StringBuffer methods are synchronized; StringBuilder methods are not. -> Option C15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions