2008-05-07から1日間の記事一覧
public class Test { public static void main(String[] args) throws Exception { String s = null; try { s.length(); } finally { s.length(); } } } ↑こういうことをすると5行目と7行目で例外が発生するが、実際にthrowされるのは7行目だけ。 public cla…
public class Test { public static void main(String[] args) throws Exception { String s = null; try { s.length(); } finally { s.length(); } } } ↑こういうことをすると5行目と7行目で例外が発生するが、実際にthrowされるのは7行目だけ。 public cla…