Difference between creating string with and without new operator?
Q2. Is there any difference between creating string with and without new operator?
String s1 = "abc";
String s2 = new String("abc");
String s3 = "abc";
String s4 = new String("abc");
String s5 = new String...
hashcodehub.hashnode.dev2 min read