Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Interview Questions and Answers|
|Ans. TreeSet and TreeMap|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   collections   treemap   treeset   basic interview question basic   frequent|
|Difference beween HashSet and TreeSet ?|
|What is comparator interface used for ?|
|If I try to add Enum constants to a TreeSet, What sorting order will it use ?|
|If we add Enum constants to a sorted collection ( Treemap , TreeSet ), What will be the order in which they will be maintained ?|
|What is the difference between TreeSet and TreeMap ?|
|Which of the following is insertion heavy - HashSet or TreeSet ?|
|How to sort objects based on one of the field ?|