This browser is no longer supported. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
JDK7 ã使ãæºåãåºæ¥ãã®ã§ãä½å½ãããã¾ãã Java7 ã§ã®å人çã«å¬ããã®ã try-with-resources Statement ã§ããAutoCloseable ï¼ãå®è£ ããã¯ã©ã¹ï¼ã®å¤æ°ããã®æ§æã§åæåããã¨ãåæã« close ãã¦ãããã£ã¦ãã®ã§ãã ã§ã¯ããã£ã¨ä½¿ã£ã¦ã¿ã¾ãã public class TryWithResources { public static void main(String[] args) { try (AutoCloseable imp = new AutoCloseableImpl()) { // New! System.out.println("hoge"); } catch(Exception e) { System.out.println("catch:" + e); } finally { System.out.printl
1. ä¾å¤è¨è¨ ã«ããã大罪 åç° å人 (a.k.a id:t-wada or @t_wada) Jun 27, 2012 @ java-ja 12å¹´6æ28æ¥æ¨ææ¥ 2. èªå·±ç´¹ä» åå: åç° å人 (ãã ããã¨) ããã°: http://d.hatena.ne.jp/t-wada ã¡ã¼ã«: takuto.wada@gmail.com Twitter: http://twitter.com/t_wada ã¿ã¯ã¼ãºï½¥ã¯ã¨ã¹ãæ ªå¼ä¼ç¤¾ åç· å½¹ç¤¾é· 12å¹´6æ28æ¥æ¨ææ¥
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}