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
Math,
9 months ago
Social Sciences,
9 months ago
Science,
9 months ago
Biology,
1 year ago
Computer Science,
1 year ago
Biology,
1 year ago
English,
1 year ago