Question: strings are equal or not?
Answer: You should not use == (equality operator) to compare these strings because they compare the reference of the string, i.e. whether they are the same object or not. On the other hand, equals() method compares whether the value of the strings are equal, and not the object itself.