Here you can find the source of exists(File file)
public static boolean exists(File file)
//package com.java2s; import java.io.File; public class Main { public static boolean exists(String fileName) { return exists(new File(fileName)); }/* w ww . j ava 2 s . c om*/ public static boolean exists(File file) { return file.exists(); } }