Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
他们的意思是“异常异常”的检查异常对吗?
引用这个oracle java 教程:
请注意,如果在目录迭代期间出现异常,则以 IOException 作为原因抛出 DirectoryIteratorException。迭代器方法不能抛出异常异常。
那是正确的;由于定义的方法Iterator不会抛出任何检查异常,迭代器实现也不能。提交该错误报告!
Iterator