HP Inc. Interview Question

How does Java store Strings?