Java tutorial
import java.io.FilePermission; import java.io.IOException; public class Main { public static void main(String[] args) throws IOException { FilePermission fp = new FilePermission("C://test.txt", "read"); // the hash code value int hash = fp.hashCode(); System.out.print("Hash Code: " + hash); } }