Java 7 !!top!! [DIRECT]

: A specialized implementation of the ExecutorService designed for "divide-and-conquer" algorithms. It allowed developers to easily split tasks into smaller sub-tasks to take advantage of multi-core processors.

To improve readability, you could write 1_000_000 instead of 1000000 . 2. The NIO.2 File System (JSR 203) java 7

WatchService watcher = FileSystems.getDefault().newWatchService(); Path dir = Paths.get("/tmp"); dir.register(watcher, StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE); WatchKey key = watcher.take(); for (WatchEvent<?> event : key.pollEvents()) System.out.println("Event: " + event.kind() + " on " + event.context()); Path dir = Paths.get("/tmp")