Results 1 to 2 of 2

Thread: Differentiate between StringBuffer and StringBuilder in Java programming.

  1. #1

    Differentiate between StringBuffer and StringBuilder in Java programming.

    Differentiate between StringBuffer and StringBuilder in Java programming.

  2. #2
    Well we can differntiate them as, StringBuilder is not synchronized StringBuilder is not thread-safe StringBuilder performance is better than StringBuffer. Both have same methods with same signatures. Both are mutable. Although, StringBuilder is faster than StringBuffer, the difference in performance is very little.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •