A

Admin • 828.43K Points
Coach

Q. What does `compareTo()` return when strings are equal?

  • (A) -1
  • (B) 0
  • (C) 1
  • (D) true

Explanation by: Admin
compareTo() returns 0 when strings are equal.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.