132

绕过 Java 编译器检查,在任何地方抛出受检异常 - Vincent's Site

 6 years ago
source link: https://www.liuwj.me/2017/12/16/throwing-checked-exceptions-anywhere/?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
这次我要写的内容也是一个黑科技,就是在实际工作中没卵用的那种。秉着实用主义至上的小伙伴们可以绕道,看了这篇文章也不会对您的工作有任何帮助。但是如果您喜欢抱着娱乐的精神钻研一下这些 tricks,我们就开始吧。Java 异常简介众所周知,Java 的所有异常都派生自 Throwable 类,在继承结构上,从 Throwable 派生出了 Error 和 Exception 两大类。其中,Error

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK