新的 Java 程序员经常遇到如下错误:
"error: unreported exception <XXX>; must be caught or declared to be thrown"
其中 XXX 是某个异常类的名称。
请解释:
java compiler-errors uncaught-exception checked-exceptions
checked-exceptions ×1
compiler-errors ×1
java ×1
uncaught-exception ×1