Different ways of String formatting in Java : Benchmarking

Java programmers use mostly the following three ways for formatting or building a string. String concatenation using + operator Using String.format Using StringBuilder Functionally all these 3 ways will produce the same result but the question is "are all the 3 ways have the same time and space performance?". I wrote small code snippet to… Continue reading Different ways of String formatting in Java : Benchmarking