Frage im Vorstellungsgespräch bei Ancestry

In Java, which class is better for string concatenation, String or StringBuffer? Why?