Just to expand on the answer of ujjawal:
The reason 'Not equals' is returned is because the == relational operator is comparing two reference variables of type
String which means for the comparison to be equal both would have to refer to the same object.
If you compare two primitives with == then it compares the actual values held.
The String .equals() method will return true because it overrides the .equals() method of object which uses == on object comparison.