StringUtils equals method

By | April 5, 2020

It compares two CharSequences and returns true if they represent equal sequences of characters otherwise returns false.

It is also used to handles nulls. Two null references are considered equal and hence it returns true. The comparison is case sensitive.

Examples:



 

Leave a Reply

Your email address will not be published. Required fields are marked *