equalsIgnoreCase() is 20–50% faster than the equals (param.
Read moreWhat is difference between equal and contentEquals?
equals() and contentEquals() are two methods in String class to compare two strings and string with StringBuffer . The parameters of contentEquals() are StringBuffer and String(charSequence) . equals() is used to compare two strings and contentEquals() is used to compare the contents of String and StringBuffer .
Read more