"why the key should be removed in `selector.selectedkeys().iterator()` in java nio?" Code Answer

4

because the selector never does that, it only adds to the set, so if you don't do it you will reprocess the event yourself next time the selector returns.

By KBK on August 7 2022

Answers related to “why the key should be removed in `selector.selectedkeys().iterator()` in java nio?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.