Multiple choice

The _________ method is used to perform a comparison that ignores the case differences, i.e. it considers A - Z to be the same as a - z.

  1. trim()

  2. equalsIgnoreCase()

  3. equals()

  4. indexOf()

  5. capacity()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This method is used to perform a comparison that ignores the case differences, i.e. when it compares two strings, it considers A-Z to be the same as a-z.