How to check if file is Hidden in java

To check if file is hidden in java, we use API’s isHidden() method. In this post we will see example of how we use isHidden method in code.

Example : Check If File is Hidden

Please Note

File.isHidden() works differently on windows and unix.
Please see the details at the java doc –
1. File isHidden()