Float f1 = new Float("10F");
Float f2 = new Float("10F");
Double d1 = new Double("10D");
System.out.println("abc"=="abc");
short c1=1;
short c2=1;
System.out.println(c1 == c2);
System.out.println(f1 == f2);
System.out.println( f1.equals(f2));
System.out.println( f2.equals(d1));
System.out.println( f2.equals(new Float("10")));
System.out.println("----------------------------->");
String a = "abc";
String b = "ab";
String c = b + "c";
System.out.println(a == c);
System.out.println(a.equals(c));
Float f2 = new Float("10F");
Double d1 = new Double("10D");
System.out.println("abc"=="abc");
short c1=1;
short c2=1;
System.out.println(c1 == c2);
System.out.println(f1 == f2);
System.out.println( f1.equals(f2));
System.out.println( f2.equals(d1));
System.out.println( f2.equals(new Float("10")));
System.out.println("----------------------------->");
String a = "abc";
String b = "ab";
String c = b + "c";
System.out.println(a == c);
System.out.println(a.equals(c));