Nov 8, 2017

Concatenate Strings in Java

Concatenate Strings in Java

If your goal is to only ever join two strings, String.concat is faster. If you need to join more than two, or in the future adding more than one concatenation, an explicit StringBuilder/StringBuffer is faster.