Java
Java
TEAM – 3
SARATHI
SHREYA B
SANDHIYA T
RAM SUNDAR M
SIVA SURYA V S 310622104140
SIVASHANKAR M 310622104142
CONTENT
• Introduction to I/O streams
• Byte stream
• Character stream
• Buffered stream
• File I/O operations
• Serializing and deserializing
Stream Output stream
• A stream is a sequence of data. In Java,
a stream is composed of bytes.
• In Java, 3 streams are created for us
automatically. All these streams are
attached with the console.
• 1) System.out: standard output stream
Input stream
• 2) System.in: standard input stream
• 3) System.err: standard error stream
I/O streams in java
• In Java, I/O (Input/Output) streams provide a way to handle
input and output operations.
• Two types of streams
Input and output stream : represent the flow of data into and out of
a program
Byte Stream
• ByteStream classes are used to read bytes from the input stream and write
bytes to the output stream.
• ByteStream classes read/write the data of 8-bits.
• The ByteStream classes are divided into two types of classes, i.e., InputStream
and OutputStream. These classes are abstract and the super classes of all the
Input/Output stream classes.