A

Admin • 828.03K Points
Coach

Q. Which method reference can replace `x -> x.toString()`?

  • (A) Object::toString
  • (B) String::valueOf
  • (C) String::substring
  • (D) Integer::parseInt

Explanation by: Admin
`Object::toString` matches the lambda `x -> x.toString()`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.