public class Tester {
public static void main(String[] args) {
StringBuffer sb = new StringBuffer("javachamp");
String s = new String("javachamp");
boolean stmt1 = s.equals(sb) ;
boolean stmt2 = sb.equals(s) ;
boolean stmt3 = sb.toString() == s ;
boolean stmt4 = sb.toString().equals(s) ;
boolean stmt5 = s.equals(sb.toString()) ;
}
}