tags:

views:

92

answers:

1

Does File.deleteOnExit() guarantee that the file is deleted even if the JVM is killed prematurely?

+4  A: 

Deletion will be attempted only for normal termination of the virtual machine, as defined by the Java Language Specification

No. check the file at next start-up if possible.

Tim Bender