How does `Enumeration` differ from `Iterator` in Java?
The `Enumeration` interface is a legacy interface, while `Iterator` is a more modern interface with more methods for advanced functionality, like `remove()`.
You're on the right track, but `Iterator` is indeed more modern, but the key point is that `Enumeration` lacks the `remove()` method.
Can you explain how `remove()` in the `Iterator` interface is used in modifying collections during iteration?