The equals( ) method compares the character sequences of two String objects for
equality. Applying the == to two String references simply determines whether the two
references refer to the same object.
Database interview questions and answers asked in various interviews, faqs,tutorial and articles..