importjava.io.File;importjava.io.IOException;publicclassFileHidden{publicstaticvoidmain(String[] args)throwsIOException{File file =newFile("C:\\Users\\TutorialsPoint7\\Desktop\\abc.txt");if(file.isHidden()){System.out.println("This file is hidden");}else{System.out.println("This file is not hidden");}}}