Equality and Identity

Learn the difference between the concept of equality and the concept of identity.

Equality

Kotlin internally converts == to the call of equals.

This means, that in Kotlin, we check instances with == for structural equality instead of identity, like in Java.

Get hands-on with 1300+ tech skills courses.