Java Collections synchronizedNavigableMap() MethodLast Updated : 17 Mar 2025 The synchronizedNavigableMap() method of Java Collections class is used to get a synchronized (thread-safe) navigable map backed by the specified navigable map. SyntaxFollowing is the declaration of synchronizedNavigableMap() method: Parameter
ReturnsThe synchronizedNavigableMap() method returns a synchronized view of the specified Navigable Map. ExceptionsNA Compatibility VersionJava 1.8 and above Example 1Output:
Synchronized navigable map is :{1=Google, 2=Facebook, 3=Java, 4=TpointTech}
Example 2Output:
Map before Synchronized map: {1=1001, 2=1002, 3=1003, 4=1004, 5=1005}
Synchronized map after remove(4, 1004):{1=1001, 2=1002, 3=1003, 5=1005}
Example 3Output: 10 Next TopicJava Collections Class |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India