HP Inc. interview question

How does Java store Strings?