== eq equals In Scala

Recent day when I was coding and a problem was encountered. After the screening, I find that there is something different between Java and Scala to judge object equality.

Scala中== eq equals区别

近日在改造代码的时候遇到了一个问题,经过排查后是因为Java和Scala对于判断对象是否相等有一些区别。

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×