Why are these == but not `equals()`?

后端 未结 8 1666
灰色年华
灰色年华 2020-12-01 07:58

I\'m a bit confused about the way Java treats == and equals() when it comes to int, Integer and other types of numbers.

8条回答
提交回复
热议问题