links:
– http://stackoverflow.com/questions/13141302/implements-closeable-or-implements-autocloseable
summary:
– Closeable vs AutoCloseable
- need newer eclipse (3.7.1 and after) - java7 and eclipse compiler option set to 1.7 (or later) - all closeable resources must be declared within try (....) e.g. try ( FileInputStream fis = new FileInputStream(...)) { blah blah }
Advertisements