If we try to add Enum constants to a TreeSet, what sorting order will it use?

1
Sorted in the order of declaration of Enums
2
Sorted in alphabetical order of Enums
3
Sorted based on order() method
4
Sorted in descending order of names of Enums

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation