Double equal sign == Compare basic data types, only compare values, regardless of precision and type
Double equal sign == compares reference data types, compares memory addresses, and does not apply
You can use the .equals method to compare strings, which compares the contents of strings
The double equal sign == comparing the wrapper class also compares the memory address. If it is a value reserved in the cache, there is no need to create a new wrapper object, and the wrapper objects with equal values are compared to true with a double equal sign. If the value exceeds the cache, the wrapper will automatically create a new wrapper object, and the values are equal at this time Wrapper class objects with double equal signs compare to false
In order to avoid this singularity, the comparison of wrapper class objects generally uses the .equals method