A

Admin • 828.03K Points
Coach

Q. Which method reference form would match `Function<String, Integer> length = String::length;`?

  • (A) Instance method of a specific object
  • (B) Instance method of an arbitrary object of a particular type
  • (C) Static method reference
  • (D) Constructor reference

Explanation by: Admin
`String::length` is an instance method of an arbitrary `String` object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.