What’s the difference between the == operator and the equals() method? What test does Object.equals()
equals methods checks for the content of the string objects while == checks for the fact that the two String objects point to same memory location ie they are same references. This methods belongs to every object by default.
Recent Comments