Deloitte Interview Question

Why we have 2 representation of String in Java?