What is non-blocking I/O in Java?
Non-blocking I/O occurs when an I/O operation is asynchronous and never blocks the executing thread, but requires explicit management of multiple threads.
Thatâ€™s incorrect. Non-blocking I/O does not require explicit multi-thread management. It uses a single thread to monitor I/O events asynchronously.
Can you explain how an event-driven model works in Java NIO for handling non-blocking I/O?