Why doesn't catching Exception catch RuntimeException?

后端 未结 5 738
眼角桃花
眼角桃花 2020-12-08 00:05

This is very odd to me. RuntimeException inherits from Exception, which inherits from Throwable.

catch(Exception exc)          


        
5条回答
提交回复
热议问题