Why File.createTempFile() does physically create an empty file on the hard drive? To reserve the filename as being unique. Otherwise, there is a possibility that another file with the same name could be created by another process.
Why File.createTempFile() does physically create an empty file on the hard drive? To reserve the filename as being unique. Otherwise, there is a possibility that another file with the same name could be created by another process.