What is the difference between

String str = new String("abc");

and

String str = "abc";

13 Answers
13

Leave a Reply

Your email address will not be published. Required fields are marked *