Monday, June 25, 2012

Java 6- New Features

Here are some of the new features in Java 6:

Collections Framework:
1. New Interfaces and implementations :
  • Deque: double ended queue which supports insertion/deletion at both ends.
  • NavigableSet &NavigableMap contains navigation methods to get closest match for given search target.
LinkedList implements Deque
TreeSet implements NavigableSet
TreeMap implements NavigableMap

2. Collections class contains 2  new methods
 newSetfromMap( Map).
 asLifoQueue(Deque)

I18N Support: New locale additions

I/O Changes:
New Class: Console  to access character based console device.
New methods added to File class getFreeSpace(), getUsableSpace(), getTotalSpace()




No comments: