Kotlin - Operators and Expressions
You want to check if two data class instances have the same content and also if they are the exact same object. Which Kotlin code correctly does both checks?
equals() so == checks structural equality (content).=== checks if both variables point to the same object.== for content and === for object identity.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions