Vidyalelo
Computer Science · Q231

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 231

Q231

Kotlin has two equality operators, == and ===. What is the difference?

A.
== determines if two primitive types are identical. === determines if two objects are identical
B.
== determines if two references point to the same object. === determines if two objects have the same value
C.
== determines if two objects have the same value. === determines if two strings have the same value
D.
== determines if two objects have the same value. === determines if two references point to the same object
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board