Computer Science, asked by gyani555raj, 3 months ago

Write the difference between == and equal().

Answers

Answered by jainbhavna400
2

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

Similar questions