Fractal Interview Question

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