Equality In Kotlin, there are two types of equality: - Structural equality ( == ) - a check for theequals() function - Referential equality ( === ) - a check for two references pointing to the same object Structural equality Structural equality verifies if two objects have the same content or structure.
