是,但不一定是 java 源码 因为最后运行代码抛出异常的是jvm,一部分异常是 java 代码抛的,还有一部分是 jvm 自己抛的 比如下面代码会抛的异常都不是在 java 代码里写出来的,看源码也看不到抛出异常的具体位置(但是看 java 代码的位置就足够了) class Scratch { public static void main(String[] args) { // test(1, 0); // test(null); } public static int test(int a, int b) { return a / b; } public static String test(Object o) { return o.toString(); } }