Java String

Recent Articles

Java String vs StringBuilder vs StringBuffer Concatenation Performance Micro Benchmark

In this Java article I walk you through designing a micro benchmark to assess the performance between String + (plus operator), String.concat method, StringBuilder.append method and StringBuffer.method. These are all different ways using which we can append two string values. This is a well grinded topic over the period and everybody knows the result of […]
Published to Java Tutorial on 03/09/2015.

String Equals Java Puzzle

Disclaimer: This is suitable for java beginners only. Some questions are ever green interview questions. Java’s special treatment for String with respect to memory handling is a favourite area for java interviewers. Sometimes we even get bored of this play with String equals. I have written a detailed tutorial on java string and its immutable […]
Published to Core Java Tutorial on 24/08/2012.

Java String

String is one of the widely used java classes. It is special in java as it has some special characteristics than a usual java class. Lets explore java String in this article and this page aims to serve you as a single point reference for all your queries on Java String. Though you might be […]
Published to Core Java Tutorial on 21/11/2011.

Java String Concatenation

You have been told many times, don’t use + (java plus operator) to concatenate Strings. We all know that it is not good for performance. Have you researched it? Do you know what is happening behind the hood? Lets explore all about String concatenation now. In the initial ages of java around jdk 1.2 every […]
Published to Core Java Tutorial on 21/10/2009.