I\'m using Windows-7 with java 7 update 6 and found this weird (at least to me) behavior -
I have two files E:\\delete1.txt and E:\\delete2.txt
Why different behavior for same operation with old and new nio API?
Because exactly emulating the behaviour of the old API for similar operations was apparently not considered an important goal in the design of the new API. Given that the main goal of the nio filesystem API was to present a new API with some quite different underlying concepts and a lot of new capabilities, it seems pretty normal to me.