πŸ“Š JAVA
Q. What is the equivalent method reference for `x -> x.toString()`?
  • (A) Object::toString
  • (B) String::valueOf
  • (C) System.out::print
  • (D) Class::getName
πŸ’¬ Discuss
βœ… Correct Answer: (A) Object::toString

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
46
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate