A

Admin • 828.03K Points
Coach

Q. What is the equivalent method reference for `x -> x.toString()`?

  • (A) Object::toString
  • (B) String::valueOf
  • (C) System.out::print
  • (D) Class::getName

Explanation by: Admin
`Object::toString` returns the string representation of an object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.