String equals vs ==

String equals is a method in String class and == is a operator. equals() compares for String content where as == operator compares reference.

Read More String equals vs ==