== (double equal sign): The double equal sign is another way to compare objects for equality, but it compares their memory addresses instead of their values.
String:A String is a sequence of characters. In Java, you can use equals() to compare two String objects and check if they have the same content.
compareTo():The compareTo() method is used to compare two objects based on their natural ordering. It returns an integer value that indicates whether one object is less than, equal to, or greater than another object.