Can you explain how Java handles string storage and construction?

Technical