Kotlin - Operators and Expressions
Which of the following Kotlin expressions correctly checks if two variables refer to the exact same object?
=== checks if two variables point to the exact same object in memory.== and .equals() check structural equality, and != checks inequality, so they don't check referential equality.a === b -> Option A=== means referential equality [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions