I am not able to understand this
When the program runs,
str1 -> "Java" (created in a pool, lets say ObjRef1).
s1 -> "Ja" (created in a pool, ObjRef2)
s2 -> "va" (created in a pool, ObjRef3)
First Line-
str1 == s1+s2;
s1 + s2 will form "Java" and since "Java" is already present in the pool (ObjRef1) it must return this reference.
Not able to understand why it prints false