[ThrowThrows.java]
1:public class ThrowThrow{
2: public void method(int value) throws Exception{
3: if(value == 0){
4: Exception ex = new Exception("例外発生");
5: throw ex;
6:}
7:}
8:}
[ThrowThrowsMain.java]
1:public class ThrowThrowsMain{
2: public static void main(String[] args){
3: ThrowThorow tt = new ThrowThrows();
4: try {
5: tt.method(0);
6: }catch(Exception e) {
9: System.out.println(e);
10:}
11:}
12:}
どのような実行結果になるのか細かく解説いただけるとありがたいです。