Java 7 new IO API - Paths.exists [duplicate] Java 7 new IO API - Paths.exists [duplicate] java java

Java 7 new IO API - Paths.exists [duplicate]


Files.exists

Look in the Files class for the static methods exists() and notExists(). Both take a Path.

I guess they decided it made more sense as a static rather than instance method.