Can anyone tell me how many objects are created. Does s3 not reference the same hello from string pool? how many String objects are there
/**
 * 
 */
 package agnitio;
/**
 * @author admin
 *
 */
public class TestString {
/**
 * @param args
 */
public static void main(String[] args) {
    // TODO Auto-generated method stub
    String s1="hello";
    String s2="hello";
    String s3 = new String("hello");
    System.out.println(s1==s2); // true
    System.out.println(s1==s3); // false
    System.out.println(s2==s3); // false
}
}