{"published":"2011-09-08 21:49:45","title":"Java SE 7 (2) - \u30ea\u30bd\u30fc\u30b9\u81ea\u52d5close\u306e\u4ed5\u7d44\u307f","height":"190","author_url":"https://blog.hatena.ne.jp/argius/","image_url":null,"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","url":"https://argius.hatenablog.jp/entry/20110908/1315486185","categories":["Java"],"author_name":"argius","blog_title":"argius note","type":"rich","version":"1.0","description":"\u6587\u5b57\u5217switch\u306b\u7d9a\u3044\u3066\u3001\u30d0\u30a4\u30c8\u30b3\u30fc\u30c9\u306b\u5f71\u97ff\u3059\u308b\u8a00\u8a9e\u4ed5\u69d8\u306e\uff12\u3064\u76ee\u3001\"The try-with-resources Statement\"\u3067\u3059\u3002 \u3053\u308c\u307e\u3067\u306f\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3044\u305f\u3082\u306e\u304c\u3001 InputStream is = new FileInputStream(\"a.txt\"); try { // TODO } finally { is.close(); } \u3053\u3046\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 try (InputStream is = new FileInputStream(\"a.txt\")) { // TODO }","blog_url":"https://argius.hatenablog.jp/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fargius.hatenablog.jp%2Fentry%2F20110908%2F1315486185\" title=\"Java SE 7 (2) - \u30ea\u30bd\u30fc\u30b9\u81ea\u52d5close\u306e\u4ed5\u7d44\u307f - argius note\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}