Java - Strings and String Handling
Which of the following is true about
StringBuilder and StringBuffer in Java?StringBuilder and StringBuffer in Java?StringBuffer methods are synchronized, making it thread-safe, while StringBuilder is not synchronized.StringBuffer is synchronized, StringBuilder is not. -> Option BStringBuffer is synchronized, StringBuilder is not. [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions