πŸ“Š JAVA
Q. Which method reference is ideal for sorting a list of integers?
  • (A) Math::max
  • (B) Integer::compareTo
  • (C) Integer::sum
  • (D) Integer::parseInt
πŸ’¬ Discuss
βœ… Correct Answer: (B) Integer::compareTo

Explanation: `Integer::compareTo` can be used to compare integers.

Explanation by: Mr. Dubey
`Integer::compareTo` can be used to compare integers.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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