What is the purpose of the `Comparator` interface in Java Collections Framework?
A. It represents a generic collection
B. It provides methods for hashing elements
C. It defines a comparison function for ordering elements
D. It represents a synchronized collection
Answer: Option C
Join The Discussion