Deloitte interview question

Why we have 2 representation of String in Java?