Tag Archives: string and stringbuffer difference

Java Performance – String, StringBuffer and StringBuilder Memory and Runtime Analysis

We normally use many string instances in our applications. As we know String objects are immutable and their values cannot be changed after they are created. If you intend to use a string object that is dynamic, then StringBuffer or StringBuilder should be your choice. This is because both are mutable. String always creates a… Read More »