Computer Science, asked by shweta9531, 1 year ago

what is the difference between equals method and equalIgnoreCase method in java?​

Answers

Answered by aqibjawedkhan9p5p8sa
1

Answer:

The only difference between them is that the equals() methods considers the case while equalsIgnoreCase() methods ignores the case during comparison. For e.g. The equals() method would return false if we compare the strings “TEXT” and “text” however equalsIgnoreCase() would return true.

Similar questions