FileUtils provides six method to compare file modification time. These methods have all required checks and exception handling. For any production grade Java application it is good to use this utility as it will save effort.
FileUtils provides four method to do file move operation. These methods have all required checks and exception handling. For any production grade Java application it is good to use this utility as it will save effort.
In Java easiest way to create new file of Zero byte just like unix touch commanad is using touch method of FileUtils class of Apache Commons IO Java library. Commons IO is well tested library.