Tag Archives: java 7

Implementing WatchService API in Java 7 to monitor the directory changes

June 15, 2012

3 Comments

In Java 7 there were quite a lot of new things added to the File NIO package (java.nio)- there was a new java.nio.file package and java.nio.file.attribute package. Main highlights of the java.nio.file package are the following classes: Path: Its an object used to locate a file or directory in the file system. The value contained [...]

email

Simple introduction to Fork-Join Framework in Java 7

June 12, 2012

3 Comments

Fork-Join Framework was added as part of Java 7 which makes use of the ExecutorService interface to distribute tasks to the worker threads in the thread pool. The difference in Fork-Join is that the ideal worker threads can steal queued subtasks from the other tasks and execute them. There are a few important classes you [...]

Whats new in Java 7 – try-with-resource construct in Project Coin

May 4, 2012

3 Comments

In our previous post we looked at different features added as part of Project Coin, in this post we will look at another language construct added as part of Java 7 and Project Coin in particular. It is the try-with-resource construct also called as Automatic Resource Management. Before getting into the details of the construct, [...]

What's new in Java 7- Features as part of Project Coin

May 2, 2012

7 Comments

As part of the Project Coin, there were quite a few language enhancements were added to the Language. The last time Java language changed was in the Java 5 release when Generics were added. The changes in introduced in the Java 7 were welcomed by java community around the world. This was seen as a stepping [...]