+ 14
Qus:- What is the difference between equals() and == in Java?
#javaqustions
5 Respuestas
+ 7
https://www.sololearn.com/Discuss/1801000/?ref=app
+ 2
equal() is use to match two strings and it check matches each character of string where as == is used to match two values
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/