Difference between string object and string literal [duplicate]

What is the difference between

String str = new String("abc");

and

String str = "abc";

13 Answers
13

Leave a Comment