posted 15 years ago
Why would it throw an IOException if no I/O takes place?
The method can throw an unchecked SecurityException, which (obviously) is not subject to the same catch-or-declare requirement as the IOException thrown by the createNewFile() method.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.