Java Guru
Posts: 70
Nickname: skumjava
Registered: Feb, 2016
Java Guru has 6+ years exp in Java Programming, He is writer at http://singletonjava.blogspot.com
Difference between String, String Buffer and String Builder
Posted: Feb 23, 2016 3:51 PM
This post originated from an RSS feed registered with Java Buzz
by Java Guru.
Original Post: Difference between String, String Buffer and String Builder
Feed Title: Java Interview Questions and Answers with Example
Feed URL: http://singletonjava.blogspot.com/feeds/posts/default?alt=rss
Feed Description: Blog for Java techniques and Programming Tutorials, Examples, Design Patterns, Interview Questions and Answers, Cloud, Virtualization, XML, Docker, Multithreading, Collection, Error and Exception, Java Singleton Design Pattern, Docker Interview Questions, String, Executor Service, Array List, TreeSet, HashMap, Concurrency
Latest Java Buzz Posts
Latest Java Buzz Posts by Java Guru
Latest Posts From Java Interview Questions and Answers with Example
Advertisement
In Java, these are the difference between String, String Builder and String Buffer:
String
String Buffer
String Builder
Immutable (cannot be changed after creation)
Mutable (can be changed after creation)
Mutable (can be changed after creation)
Thread Safe (Can be used across threads)
Thread Safe (Can be used across threads)
Not thread safe
Read: Difference between String, String Buffer and String Builder