class Test { public int aaa() { int x = 1; try { return ++x; } catch (Exception e) { } finally { ++x; } return x; } public static void main(String[] args) { Test t = new Test(); int y = t.aaa(); System.out.println(y); } } ä¸ã®è³ªåã«åçããåã«ã次ã®åé¡ã«ã¯çããããã§ããããï¼ try ãããã¯å ã« return æãããå ´åã finally ãããã¯ã¯ return ã®å®è¡æã«å¦çãããã®ã§ããããã finally ãå®è¡ããããªããããã«ã㦠return 㨠finally ã®ä¸¡æ¹ã®å®è¡ãå®ç¾ããã®ã§ããããã ããçããåãããªããã°ãã©ãããã®ã¾ã¾èªã¿é²ã
{{#tags}}- {{label}}
{{/tags}}