Java 7 ((full)) -

1. Language Changes (Project Coin) Try-with-Resources (AutoCloseable) Automatically closes resources implementing AutoCloseable .

// br automatically closed try // some code catch (SQLException | IOException e) // single block logger.log(e); throw new MyAppException(e); java 7

// Before: Map<String, List<String>> map = new HashMap<String, List<String>>(); Map<String, List<String>> map = new HashMap<>(); // Diamond Strings in switch String day = "MONDAY"; switch (day) case "MONDAY": System.out.println(1); break; case "TUESDAY": System.out.println(2); break; default: System.out.println(0); throw new MyAppException(e)

(file system events)