ä¾å¤ Java Tutorials: http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html ä¾å¤ã®æ§æ try, catch, finally Javaã§ã¯ãããã°ã©ã ã®å®è¡ä¸ã«ã¨ã©ã¼ãèµ·ãã£ãã¨ãã«ãä¾å¤ã¯ã©ã¹(Throwableã¤ã³ã¿ã¼ãã§ã¼ã¹ãå®è£ ãããã®)ãæãã(throw)ãã¨ãããã¾ããä¾å¤ãthrowãããã¨ãããã°ã©ã ã®æµããã¨ã¾ããtryæä¸ãªãããã®å¤å´ã®catchã¯ãã¼ãºã«ãã£ã¦ä¾å¤ãè£è¶³ããã¾ãã tryãããã¯ä¸ãæ£å¸¸ã«çµäºããã¨ãããä¾å¤å¦çãè¡ã£ãå¾ããfinallyã¯ãã¼ãºå ã®ã³ã¼ãã¯å¿ ãï¼åº¦å®è¡ããã¾ããç¹ã«å¿ è¦ã¨ããªãå ´åã¯ãfinallyç¯ãçç¥ãã¦ãããã§ãã try { // throws IOExceptionã¨ãã宣è¨ããã¤ã¡ã½ãããå®è¡ }
{{#tags}}- {{label}}
{{/tags}}