A

Admin • 802.91K Points
Coach

Q. What is the equivalent method reference for `(x, y) -> Integer.compare(x, y)`?

  • (A) Integer::parseInt
  • (B) Integer::compare
  • (C) Math::max
  • (D) Integer::valueOf

Explanation by: Admin
`Integer::compare` is the method reference equivalent to `(x, y) -> Integer.compare(x, y)`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.