A

Admin • 830.13K Points
Coach

Q. Which is the correct method reference for `String::valueOf`?

  • (A) Converts primitives to Strings
  • (B) Calculates length of String
  • (C) Checks if String is empty
  • (D) Returns a substring

Explanation by: Admin
`String::valueOf` converts primitives and objects to their string representation.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.