Pregunta de entrevista de Fractal

Why there are two ways to create String object in Java.