+ 14

Qus:- What is the difference between equals() and == in Java?

#javaqustions

14th May 2019, 2:07 PM
Deepika Mourya
Deepika Mourya - avatar
5 Respuestas
14th May 2019, 6:56 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 7
https://www.sololearn.com/Discuss/1801000/?ref=app
14th May 2019, 3:05 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
equal() is use to match two strings and it check matches each character of string where as == is used to match two values
16th May 2019, 9:41 AM
Sandeep Kumar Saw
Sandeep Kumar Saw - avatar
0
In general both equals() and “==” operator in Java are used to compare objects to check equality but here are some of the differences between the two: ... In simple words, == checks if both objects point to the same memory location whereas .equals() evaluates to the comparison of values in the objects. for more detail you can visit http://pythonandmltrainingcourses.com/best-summer-training-in-noida/
18th May 2019, 10:29 AM
navdeep