Question d’entretien chez Fractal

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