"Interview IO" 11th Java IO

Source: Internet
Author: User

1. What is a bit (bit), what is a byte (byte), what is a character (Char), what is the length of it, what is the difference

1 "bit the smallest binary unit, is the computer operating part of the value of 0 or 1
2 "Byte is the smallest unit of computer operation data is composed of 8 bit bits (-128-127)
3 "Char is the smallest unit of user's readable and writable, and in Java it is composed of 16 bit bits (0-65535)

Bit is the smallest unit computer can only recognize 0 or 1

8bit is a byte is for the computer to see
Character is seeing something a character = two bytes

===============================================================

2. What is a stream, according to the unit of transmission, into which two streams, and what their parent class is called Stream refers to the transmission of data

1 "stream is divided into Word stream and character stream

2 "byte stream inheritance InputStream and OutputStream

3 "character stream inherits from Inputsteamreader and OutputStreamWriter

===============================================================

3. The flow according to the direction of transmission can be divided into which two, respectively, to illustrate

1 "input and output relative to program
2 "input stream InputStream
3 "Output stream OutputStream

===============================================================

4. According to the implementation of the function is divided into which two, respectively, illustrate

1 in accordance with the implementation of the function is divided into "node flow" "Processing flow"
2 "node stream: OutputStream
3 "Processing flow: OutputStreamWriter

===============================================================

===============================================================

===============================================================

===============================================================

===============================================================

===============================================================

===============================================================

"Interview IO" 11th Java IO

Related Article

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.