When is a == b is true but a.equals(b) is false, or vice versa?
I know that equals() is used to compare the values of the Strings and the == to check if two variables point at the same instance of a String object.
But in which case will these two be different ?