86.5k views
4 votes
"What is the difference between == and is ?

1 Answer

2 votes

Answer:

The '==' is known as the equality operator. The 'is' is known as the identity operator.

Step-by-step explanation:

The == operator helps us compare the equality of objects. The is operator helps us check whether different variables point towards a similar object in the memory.

User Serafim Suhenky
by
7.6k points

No related questions found