How do you check if a file has been modified in Java?

Như Quỳnh

New member
How do you check if a file has been modified in Java?
Answer
In Java, we can use Files. readAttributes() to get the file metadata or attribute, and then lastModifiedTime() to display the last modified date of a file.
 

Tìm kiếm

Back
Top