JAVA NiO Review Notes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.