The canRead method of file class can be used for checking whether the application has a read permission on a file.
package io;
import java.io.File;
public class FileExample {
public static void main(String[] args){
File file = new File("d:\\temp\\test.txt");
boolean value = file.canRead();
System.out.println(value);
}
}