Question Info

This question is public and is used in 3 tests.

Type: Open-Ended
Category: Programming
Grade: None
Score: 1
Author: BacMan orange star
Last Modified: 2 weeks ago

View all questions by BacMan.

View Question

View this question.

Add this question to a group or test by clicking the appropriate button below.

add this question to a test add this question to a group

1 vote
  • What is the different between a StringBuilder and a StringBuffer?
    • The StringBuilder class provides an API compatible with StringBuffer, but with no guarantee
      of synchronization. This class is designed for use as a drop-in replacement for
      StringBuffer in places where the string buffer was being used by a single thread
      (as is generally the case). Where possible, it is recommended that this class
      be used in preference to StringBuffer as it will be faster under most
      implementations.