I'am sorry, I couldn't post the question before...
The question is when
String s3 gets the value "EFG" and later s4 also gets the value "EFG", as the literal goes into the string pool,then s3 and s4 should point to the same reference.
Then why should (s3 == s4) return false.
Please clear this doubt.