> SecurityManager sm = System.getSecurityManager(); > sm.checkDelete(dir.getAbsolutePath()); > > Do the above codes mean the file 'dir' can be delete at any time?
Given that anybody can implement their own SecurityManager, you basically have zero guarantees about anything.
Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...