How are you able to sort given HashMap on the basis of values. A. Implement the Comparator interface and override its compare method B. Implement Comparator and Comparable interface C. It is not possible D. Implement the Comparator interface and override its compareTo method Answer Workspace Report Discuss Answer with explanation Answer: Option A Explanation Implement the Comparator interface and override its compare method Workspace
Discuss about the question