I am using watchKey
to listen for a file change in a particular folder.
Path _directotyToWatch = Paths.get(\"E:/Raja\");
WatchService watcherSvc
The reason you are only seeing an event for "E:/Raja/Test" and not "E:/Raja/Test/Foo.txt" (for example) is that you've only registered the "E:/Raja" directory with the service. This means you will see events on the directory and its immediate members. The "E:/Raja/Test" is a member of the directory, and you are getting events to say that is has been changed ... when files are added to it.
The solution is to register all of subdirectories of "E:/Raja" as well ... going as far down the directory hierarchy as you need to go.