How can we reverse the order in the TreeMap ?
Questions
Search
List By Company
List By Topic
Legacy
Tests
Repository
DashBoard
Java
Java 8
Java 7
Java Abbreviations
OCJP / SCJP
Class List
New in Java 8
Java Exceptions
Spring Exceptions
Java Enums
Java 8 Lambda
Java 8 java.time
Big Data
Best Of Java
Discussion
Search
Subscribe
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.
Label / Company
Label / Company / Text
Search
Submit Question
Interview Questions and Answers
Q1.
How can we reverse the order in the TreeMap ?
Ans. Using Collections.reverseOrder()
Map
tree = new TreeMap
(Collections.reverseOrder());
Help us improve. Please let us know the company, where you were asked this question
:
Like
Discuss
Correct / Improve
 java   collections   map   treemap
Correction
Duplicate of Another Question
Company where this question was Asked
Suggestion
Try 1 Question(s) Test
Collections is a / an ..
interface
abstract class
final class
util class
Related Questions
Difference between HashMap and Hashtable?
Difference between TreeMap and HashMap ?
Can you provide some implementation of a Dictionary having large number of words ?
What is a ConcurrentHashMap ?
Collections.sort can only be performed on ..
a. Set
b. List
c. Map
d. Any Collection implementation
How is Hashmap internally implemented in Java ?
What is the difference between List, Set and Map ?
or
What are the different Java Collections Interfaces ?
Can we use null as a key for a map collection ?
Which of the following collections stores its elements in insertion Order ?
a. HashMap
b. TreeMap
c. LinkedHashMap
d. LinkedMap
Which of the following doesn't extend Collection interface ?
Help us and Others Improve. Please let us know the questions asked in any of your previous interview.
Any input from you will be highly appreciated and It will unlock the application for 10 more requests.
Company Name:
Questions Asked: