Equality and Identity

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

We'll cover the following

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 1200+ tech skills courses.