/*When using == to determine whether two variables are equal, if the two variables are variables of basic data types and both are numerical types, then as long as the values of the two variables are equal, using == to determine will return true* /
int i=65;
float f=65.0f;
System.out.println(i==f);//true
char c='A';
System.out.println(c==f);//true
//But for two reference type variables, the == judgment will return true only when they point to the same object.
String str1=new String("hello");
String str2=new String("hello");
System.out.println(str1==str2);//false
System.out.println(str1.equals(str2));//true
}
}
}