WatchService to Monitor Directory Changes in Java NIO 2

Java NIO 2 provides the API which monitors the given directory. Directory creation, deletion, changing the name of directory or creating any file or directory inside any directory