javap
JavaSE7ã§ä½¿ããMulti-Catchã ã¨ã£ãã®æã«èª¿æ»æ¸ã¿ã ãã©ã 復ç¿ãããã¦ã¯ã©ã¹ãã¡ã¤ã«ã»ã¨ãã£ã¿ã¼ã§è¦ãå 容ãæ·»ãã¦æ¸ãã¦ã¿ã¾ãã public void multiCatch() { try { multiThrow(); } catch (IOException | SQLException | ClassNotFoundException e)â¦
ãæååé£çµãããæã¯ï¼ã§ç¹ãããªãã£ã¦ã³ã¼ãã£ã³ã°è¦ç´ã«æ¸ãã¦ããã¨æãã ããã¯ã³ã³ãã¤ã©ã®æ¹åã§ã¨ã£ãã®æã«StringBuilderã«å¤ãã£ã¦ãã ãããªãã¨ã¯å°ãJavaãç¥ã£ã¦ã人ãªã誰ã§ãç¥ã£ã¦ãããã ä»æ¥æ¸ãã®ã¯ããæå¤ã®é¨åã«ã¤ãã¦ã®å¾©ç¿â¦
ææ¸ãããã¨ããããã©æ°ãåããã®ã§javapã®çµæãããã¦ã¿ããã é¢åèãããClass File Editorã®çµæã§åå¼ãã¦ã»ããã ã¾ããã¾ããæ¸ããã¨ã§ããªããã ãã©ã Integer boxing_i = 1; int unboxing_i = boxing_i; ä¸è¨ã®ã³ã¼ãããããªæãã«ãªãã¾â¦
æã¤ã¶ãã«ã¯ã©ã¹ãã¡ã¤ã«ã«ã¤ãã¦èªã£ã¦ã¿ããã ä»åã®åå¼·ã®å ã¨ãªãã½ã¼ã¹ã¯ãã¡ãã ä¸åã§ã¯ããã³ã°ã§ããã»ã©çããªãã§ããã ãã®ã¨ã³ããªã¼ãæ¸ãã®ã«å®éã¯ä¸¸ä¸æ¥ãããã¦ã»ã»ã» ãã®æ ç±ã人æè²æã«ä½¿ãã£ã¦è©±ã ã ã½ã¼ã¹ï¼ä¾¿å®ä¸ãè¡çªå·ãæ·»â¦
ããã¸ã§ã¯ãåç §ã§ã¯åãã Jaråç §ã ã¨ClassCastExceptionã ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã«List ããã«ã»ãã¿ã¼ã¤ã³ã¸ã§ã¯ã·ã§ã³ã public void setList(List list) ã¤ã³ã¸ã§ã¯ã·ã§ã³ã¯ããã¦ãã®ã ãã ãªã¹ãã®ä¸èº«ã¯Hogeã§ã¯ãªãã ããèªä½ã¯ä»ååé¡ã«ãã¦ãªãâ¦