bulk email server

Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jul 2017
    Posts
    79
    Feedback Score
    0

    Differentiate between StringBuffer and StringBuilder in Java programming.

    VPS Hosting
    Differentiate between StringBuffer and StringBuilder in Java programming.

  2. #2
    Member
    Join Date
    Sep 2017
    Posts
    79
    Feedback Score
    0
    StringBuffer is synchronized i.e. thread safe. It means two threads can't call the methods of StringBuffer simultaneously.
    StringBuffer is less efficient than StringBuilder.

    StringBuilder is non-synchronized i.e. not thread safe. It means two threads can call the methods of StringBuilder simultaneously.
    StringBuilder is more efficient than StringBuffer.

  3. #3
    Member
    Join Date
    Sep 2017
    Posts
    79
    Feedback Score
    0
    StringBuffer is synchronized i.e. thread safe. It means two threads can't call the methods of StringBuffer simultaneously.
    StringBuffer is less efficient than StringBuilder.

    StringBuilder is non-synchronized i.e. not thread safe. It means two threads can call the methods of StringBuilder simultaneously.
    StringBuilder is more efficient than StringBuffer.

 

 

Bookmarks

Posting Permissions

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