Q. What is the equivalent method reference for `(x, y) -> Integer.compare(x, y)`?

  • (A) Integer::parseInt
  • (B) Integer::compare
  • (C) Math::max
  • (D) Integer::valueOf
πŸ’¬ Discuss
βœ… Correct Answer: (B) Integer::compare
Explanation: `Integer::compare` is the method reference equivalent to `(x, y) -> Integer.compare(x, y)`.
Explanation by: Mr. Dubey
`Integer::compare` is the method reference equivalent to `(x, y) -> Integer.compare(x, y)`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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