Here you can find the source of exists(Path path, LinkOption... options)
public static boolean exists(Path path, LinkOption... options)
//package com.java2s; //License from project: Apache License import java.nio.file.Files; import java.nio.file.LinkOption; import java.nio.file.Path; public class Main { public static boolean exists(Path path, LinkOption... options) { return Files.exists(path, options); }//w ww . j av a2 s . co m }