Byte input and output streams and character input and output streams in Java

Source: Internet
Author: User

Byte input and output streams and character input and output streams in Java

Byte input and output streams and character input and output streams in Java

Which of the following stream classes is a character-oriented input stream ()

A BufferedWriter
B FileInputStream
C ObjectInputStream
D InputStreamReader

Resolution: IO stream
(1) byte input stream
Base Class: InputStream
FileInputStream, ByteArrayInputStream, PipedInputStream, BufferedInputStream, ObjectInputStream, FilterInputStream, PushbackInputStream, DataInputStream

(2) byte output stream
Base Class: OutputStream
FileOutputStream, ByteArrayOutputStream, PipedOutputStream, BufferedOutputStream, ObjectOutputStream, FilterOutputStream, PrintStream, DataOutputStream

(3) character input stream
Base Class: Reader
FileReader, CharArrayReader, PipedReader, StringReader, BufferedReader, InputStreamReader, FilterReader, PushbackReader

(4) character output stream
Base Class: Writer
FileWriter, CharArrayWriter, PipedWriter, StringWriter, BufferedWriter, OutputStreamWriter, FilterWriter, and PrintWriter

Answer: D.

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.