πŸ“Š JAVA
Q. If we try to add Enum constants to a TreeSet, what sorting order will it use?
  • (A) Sorted in the order of declaration of Enums
  • (B) Sorted in alphabetical order of Enums
  • (C) Sorted based on order() method
  • (D) Sorted in descending order of names of Enums
πŸ’¬ Discuss
βœ… Correct Answer: (A) Sorted in the order of declaration of Enums

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
383
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Kirti
Publisher
πŸ“ˆ
81%
Success Rate