Java OCA OCP Practice Question 1046

Question

A StringBuffer is slower than a StringBuilder, but a StringBuffer is thread-safe.

  • A. True
  • B. False


A.

Note

The StringBuilder class is compatible with StringBuffer but is not thread-safe and is generally faster.




PreviousNext

Related