A

Admin • 802.91K Points
Coach

Q. How are you able to sort given HashMap on basis of values

  • (A) Implement Comparator interface and override its compare method
  • (B) It is not possible
  • (C) Implement Comparator interface and override its compareTo method
  • (D) Implement Comparator and Comparable interface
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.