equals() method is derived from Object class which is a super class in java indirectly and this method is used to verify the content of the two objects if same return true otherwise return false.
In ...
Bharat
Oct 1st, 2012
CompareTo method which is present in the String class is used to check the two strings. It checks each character with the other String and if found equals then returns 0. Else negative value or positi...