package javaapplication1;
import java.io.File;
import java.io.IOException;
public class JavaApplication1 {
public static void main(String[] args) throws IOException {
try {
File file = new File("d://data.txt");
boolean b = file.isHidden();
if (b)
System.out.println("file is hidden");
else
System.out.println("file is not hidden");
} catch (Exception e) {
System.out.print(e);
}
}
}
/*
run:
file is not hidden
*/