Rollerball
Rollerball

Reputation: 13108

Confirmation about an Oracle tutorial typo

Do they mean checked exception with "exception exceptions" right?

Quoting from this oracle java tutorial:

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.

Upvotes: 2

Views: 62

Answers (1)

That would be correct; since the methods defined on Iterator do not throw any checked exceptions, iterator implementations can't either. File that bug report!

Upvotes: 2

Related Questions