Thinking in Java笔记8

来源:互联网 发布:孔浩 shiro 源码 编辑:程序博客网 时间:2024/05/16 11:26

(第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)

 
运行结果: