Multiple choice

The _____________ method compares a specific region inside a string with another specific region in another string.

  1. charAt()

  2. trim()

  3. regionMatches()

  4. none of these

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

The 'regionMatches()' method compares a specific region inside a string with another specific region in another string.