Computer Science, asked by Neetu05, 5 months ago

What is difference between equality (= =) and identity (is) operator?​

Answers

Answered by smsingh1982
1

Explanation:

Identity operator ( “is” and “is not” ) is used to compare the object's memory location. When an object is created in memory a unique memory address is allocated to that object. '==' compares if both the object values are identical or not. 'is' compares if both the object belongs to the same memory location.

Similar questions