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

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

1.== determines if two primitive types are identical. === determines if two objects are identical

2.== determines if two references point to the same object. === determines if two objects have the same value

3.== determines if two objects have the same value. === determines if two strings have the same value

4.== determines if two objects have the same value. === determines if two references point to the same object


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!