Given a file name and we have to find its last modification date using java program.
To implement this program, we are using "File" class, and its method "lastModified()" which returns file’s last modification date and time.
Here, we are passing (giving) a file named "IncludeHelp.txt' which is stored in "E:" drive in my system; you can pass any file name with correct path which must be available in your system.
Consider the program
Output