Some of the new collections APIs have been introduced in Java 6.0. These are:
Some of the new Classes are:
Updated Classes in Java 6.0
To implement the new interfaces we modify some
classes like TreeSet is modified to implement NavigableSet, LinkedList
is modified to implement Deque, TreeMap is modified to implement
NavigableMap etc. Some of the new methods like newSetFromMap and asLifoQueue
have been added to Collections 2.
the bi- directional traversal has become easier with java6.0 collections. We can
even retrieve elements as desired.
Liked it! Share this Tutorial