Here we'll see two examples - Copy operation & Traversing a file tree. If you have already worked using JDk 6 or earlier versions then you can see how easy it is to use JDK 7's nio package. And you need to write less code to implement the same.
Traversing to a file made easy using java nio api. Copying of directory using java nio is very easy. We just have to use the walkFileTree method and as we traverse on the directory entry we copy the folders and file contents.