filmov
tv
isFile() method of File class in java - Finds folder element is a file or not .

Показать описание
isFile() method of a File class in java is used to find out wheather a folder element mentioned is a file or not .
Hello Friends
isFile() method returns true or false .
true in case the provided filename which is File1 in our case is a file and not a directory in a given folder path .
false in case if the File1 is not a file but a directory
Lets see it by running the program .
It has returned false because , we need to give file extension as well.
Lets try it with a directory name .
Thanks for watching ,
Please do like and subscribe to my channel .
Hello Friends
isFile() method returns true or false .
true in case the provided filename which is File1 in our case is a file and not a directory in a given folder path .
false in case if the File1 is not a file but a directory
Lets see it by running the program .
It has returned false because , we need to give file extension as well.
Lets try it with a directory name .
Thanks for watching ,
Please do like and subscribe to my channel .