Difference between equals and equalsignorecase in Java ?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. Difference between equals and equalsignorecase in Java ?Core Java
Ans. "equals" method is the method of object class that needs to be overridden to check object equality. This is not specific to any class like String.

equalsignorecase is the method of String class that provides a definition that ignores the case of characters during comparison.

The only difference between them in String class is that the equals() methods considers the case while equalsIgnoreCase() methods ignores the case during comparison.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     equals  equalsignorecase  equals vs equalsignorecase


Related Questions




Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: