Top.Mail.Ru
May 28th, 2006 - Java developers — LiveJournal
? ?

Java developers

May 28th, 2006

10:52 am - popcorn09 - 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
Powered by LiveJournal.com