他们的意思是检查异常和“异常异常”吗?
引用自this oracle java教程:
Note that if there is an exception during directory iteration then DirectoryIteratorException is thrown with the IOException as the cause. Iterator methods cannot throw exception exceptions.
最佳答案
这是正确的;由于 Iterator
上定义的方法不会抛出任何已检查异常,因此迭代器实现也不能。提交错误报告!
关于java - 关于 Oracle 教程拼写错误的确认,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18187382/