??JSR 334,JDK 7?????????????,???:1. switch????String????: public static void switchString(String s){ switch (s){ case "db": ... case "wls": ... case "idm": ... case "soa": ... case "fa": ... default: ... } }2. ?????????? - "0b"???"_"???,?????????? a. ???????????, 0b: ????????????: byte b1 = 0b00100001; // New byte b2 = 0x21; // Old byte b3 = 33; // Old b. ??????????????,?????,????????????: long phone_nbr = 021_1111_2222;3. ???????????? - "?? new",????????: ArrayList<String> al1 = new ArrayList<String>(); // Old ArrayList<String> al2 = new ArrayList<>(); // New4. ????reflect?????????? - ReflectOperationException,????: ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NoSuchFieldException, NoSuchMethodException5. catch????????,?????????,????????: try{ // code } catch (SQLException | IOException ex) { // ... }6. ?????? - ??????????,??????????style: public void test() throws NoSuchMethodException, NoSuchFieldException{ // ?? try{ // code } catch (RelectiveOperationException ex){ // ?? throws ex; } }7. ???try()?? - Try with Resources,?????????????(???????????java.lang.AutoCloseable??),???????try?????"("??"{": try(BufferedReader br = new BufferedReader(new FileReader("/home/oracle/temp.txt"))){ ... br.readLine() ... }try-with-resources?????catch,??????????catch???????Todd