Write the difference between == and equal().
Answers
Answered by
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
English,
1 month ago
Science,
1 month ago
Science,
3 months ago
Social Sciences,
3 months ago
Math,
8 months ago