This method is available in package java.io.File.exists(). 软件包java.io.File.exists()中提供了此方法。 This method is used to check whether files or directories exist or not in the given filepath.