Pergunta de entrevista da empresa NTT DATA

What are the two ways of creating a String in Java? Which one should we prefer?