Post

@EclipseJavaIDE true, Both s1 and s2 will reference an object in internal pool of string constants
English

@EclipseJavaIDE Answer is true. Due to string optimization, both these variables reference the same object.
English

@EclipseJavaIDE false. s1 and s2 are two different objects. s1 != s2
English




















