Computer Science, asked by fiftyshades, 1 year ago

What is the difference between equals() and method and == operator?

Answers

Answered by Anonymous
2

The equals() is a method and it matches the content of the strings whereas == is an operator and matches object or reference of the strings.

Answered by adityaK2517
2
The equals() is a method and it matches the content of the strings whereas == is an operator and matches object or reference of the strings.
Similar questions