Why 2 String Objects are created ?
Why is the line
String s2 = "bb"
is creating 2 objects ?
(I checked it using DevPartner Java Profiler, which gave me object count).
I am using JDK 1.5.0_10 !!
I thought String Literals are placed in Literal Pool and further compile time resolvable String objects are created at compile time only (in this case, s2 is compile time resolvable, right ?)
I have also not used the "new" operator (which forces new Object creation).
So why 2 objects. Any idea ?

