What is the difference between these two following statements?

String s = "text";

String s = new String("text");

12 Answers
12

Tags:

Leave a Reply

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