Computer Science, asked by hhwkxu9dtq, 4 months ago

Similarities between ‘= =‘ and Equals() in Java

Answers

Answered by hemangibadgujar24
0

Answer:

Similarities between ‘= =‘ and Equals() in Java

answer: yes

Answered by aadirawalrawal
0

Answer:

We can use == operators for reference comparison (address comparison) and . equals() method for content comparison. In simple words, == checks if both objects point to the same memory location whereas . equals() evaluates to the comparison of values in the objects.

Explanation:

Plzz Follow Me

Similar questions