What is the difference between equals() and method and == operator?
Answers
Answered by
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
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