What’s the difference between comparison done by equals method and == operator?

By ayush goel in 22 Sep 2023 | 11:37 am
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

What’s the difference between comparison done by equals method and == operator?

22 Sep 2023 | 11:37 am
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

  - `equals` is a method used to compare the content (values) of objects for equality. `==` compares object references (memory addresses).


23 Sep 2023 | 04:13 pm
0 Likes

Report

Please describe about the report short and clearly.