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

  • (A) Object::toString
  • (B) String::valueOf
  • (C) String::substring
  • (D) Integer::parseInt
πŸ’¬ Discuss
βœ… Correct Answer: (A) Object::toString
Explanation: `Object::toString` matches the lambda `x -> x.toString()`.
Explanation by: Mr. Dubey
`Object::toString` matches the lambda `x -> x.toString()`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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