1. What is JAVA nio?
Starting with JDK1.4, Java provides a new set of improved input/output processing functions, collectively referred to as new IO, or NIO, with many new classes for handling input/output, all of which are placed under Java.nio packages and sub-packages.
And many of the classes in the original java.io package are rewritten on the basis of NIO.
2. Why use Java NIO?
NiO and traditional IO have the same purpose, both for input/output, but the new IO uses a memory-mapped file to process the input/output, and the new IO maps a section of the file or file into memory so that the file can be accessed like memory.
(Simulating the concept of virtual memory on the operating system), in this way the input/output is much faster than the traditional input/output.
3. What is the difference between JAVA NiO and IO?
4. skeleton
5. How do I use it?
6. Precautions for use
7. optimization
8. Monitoring
JAVA NiO Review Notes