Introduction to Java File API In our previous post we did get a taste of the power of the static APIs in the Java Files class and we managed to compare the code written without using the APIs in Java Files and with using the APIs in Java Files. also read: Java 7.0 Tutorials New …
java 7
A peek into the Files utility which is part of java.nio package in Java 7
We recently wrote about watching a directory using the new APIs introduced as part of Java 7. In this post let me throw some light on another class added to the java.nio package as part of Java 7 update- java.nio.file.Files. Another piece of information related to this is that complete java.nio.file package was added as …
Implementing WatchService API in Java 7 to monitor the directory changes
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 …
Merge Sort implementation using Fork-Join Framework in Java 7
In our previous post we went through the basics of Fork-Join Framework introduced as part of Java 7. In this post lets apply the same Fork-Join to implement Merge sort algorithm. The pseudo code for Merge sort can be found here. also read: Java 7.0 Tutorials New Features in Java 7.0 G1 Garbage Collector in …
Simple introduction to Fork-Join Framework in Java 7
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. also read: Java 7.0 Tutorials New Features …
What’s new in Java 7- Features as part of Project Coin
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 …
G1 Garbage Collector in Java 7.0
Garbage Collection in Earlier versions Java 1.5 The major enhancements in Java 1.5 Garbage Collector (GC) has changed from the previous serial collector (-XX:+UseSerialGC) to a parallel collector (-XX:+UseParallelGC). You can override this default by using the -XX:+UseSerialGC command-line option to the java command. Enormous changes have made to the heap size.Before J2SE 5.0, the …
Java 7.0
Java 7.0 (Dolphin) Sun is releasing weekly early access snapshots of the complete source, binaries and documentation for JDK 7. These raw snapshot releases let you review and contribute to the Java SE platform as it is being developed. Some possible language changes being considered for Dolphin include: property support (for getFoo()/setFoo() pattern) method references …