SyntaxFix
Write A Post
Hire A Developer
Questions
== compares the reference value of objects whereas the equals() method present in the java.lang.String class compares the contents of the String object (to another object).
==
equals()
java.lang.String
String