hi
i came across this question in Poddar site .it is kind of confusing that both the == and equals operator return a false value.could anyone explain me why it is happening.the question is :
StringBuffer sb1 = new StringBuffer("Amit");
StringBuffer sb2= new StringBuffer("Amit");
String ss1 = "Amit";
System.out.println(sb1==sb2);
System.out.println(sb1.equals(sb2));
System.out.println(sb1.equals(ss1));
System.out.println("Poddar".substring(3));