difference between equals() and ==
QGP:
In JAVA, equals() is used to compare two strings, while == compares two numbers.
Answers
Answered by
4
Equals () is mostly used in x comparing string variable whereas == is used to compare any datatype.
Similar questions