Compare the classes and the functionality provided by the Java API NIO and the combination of the packages java.io and java.net.
Explain how to establish a connection using the latter approach.
Explain how to use a Selektor object in the NIO approach.