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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Converts primitives to Strings
Explanation: `String::valueOf` converts primitives and objects to their string representation.
Explanation by: Mr. Dubey
`String::valueOf` converts primitives and objects to their string representation.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
52
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate