What is a stream and what are the types of Streams and classes of the Streams?

What is a stream and what are the types of Streams and classes of the Streams?

A stream is sequence of flowing data. Stream is an abstract class in Java, that is used to either read the data or write the data to/from a disk file, device, a network socket, other programs, a memory array etc.

There are two types of streams that Java support :
    * Byte oriented streams.
    * Characters oriented streams.

Classes of the Streams :
    * BufferedInputStream
    * BufferedOutputStream
    * BufferedReader
    * BufferedWriter
    * ByteArrayInputStream
    * ByteArrayOutputStream
    * CharArrayReader
    * CharArrayWriter
    * DataInputStream
    * DataOutputStream
    * FileInputStream
    * FileOutputStream
    * FileReader
    * FileWriter
    * FilterInputStream
    * FilterOutputStream
    * FilterReader
    * FilterWriter
    * InputStream
    * InputStreamReader

	

    * LineNumberReader
    * ObjectInputStream
    * ObjectOutputStream
    * OutputStream
    * OutputStreamWriter
    * PipedInputStream
    * PipedOutputStream
    * PipedReader
    * PipedWriter
    * PrintStream
    * PrintWriter
    * PushbackInputStream
    * PushbackReader
    * RandomAccessFile
    * Reader
    * SequenceInputStream
    * StreamTokenizer
    * StringReader
    * StringWriter
    * Writer
 

By:Jalees
Date:2016-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher