Java 7 uses the underlying file system functionalities to watch the file system for changes. Now, we can watch for events like creation, deletion, modification, and get involved with our own actions. For accomplish this task, we need: • An object implementing the Watchable interface - the Path class is perfect for this job. • A set of events that we are interested in - we will use StandardWatchEve
![How to watch the file system for changes in Java 7 (JDK 7) - DZone](https://cdn-ak-scissors.b.st-hatena.com/image/square/c245f92f072d46526ffa72792d6a7aaeeb075554/height=288;version=1;width=512/https%3A%2F%2Fdzone.com%2Fthemes%2Fdz20%2Fimages%2FArticleImg_6.jpg)