Q. If we add Enum constants to a TreeSet, what sort order will it use?
β
Correct Answer: (B)
Sorted in the order of declaration in Enums
Explanation: TreeSet will sort the values in the order in which the Enum constants are declared.