Question
What is the number of objects created in the following code snippet?
String s1 = "test";
String s2 = "test"
String s3 = new String("test");
String s4 = new String("test");
a) 1
b) 2
c) 3
d) 4
String s1 = "test";
String s2 = "test"
String s3 = new String("test");
String s4 = new String("test");
a) 1
b) 2
c) 3
d) 4
