A

Admin • 825.56K Points
Coach

Q. Which reference is equivalent to `(x, y) -> x.compareTo(y)`?

  • (A) String::equals
  • (B) String::compareTo
  • (C) String::length
  • (D) String::substring

Explanation by: Admin
`String::compareTo` compares two strings.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.