(第9章笔记)
运行结果:
string is not null
Originating the exception in test()
Inside g(), e.printStackTrace()
Caught in main, e.printStackTrace()
java.lang.Exception: thrown from f()
at com.Test8.f(Test8.java:19)
at com.Test8.g(Test8.java:23)
at com.Test8.main(Test8.java:42)
java.lang.Exception: thrown from f()
at com.Test8.g(Test8.java:28)
at com.Test8.main(Test8.java:42)
运行结果:
无