NTT DATA Interview Question

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