0% found this document useful (0 votes)
0 views1 page

Java Unit - 3

The document discusses the fundamental concepts of Input/Output (I/O) in Java, focusing on the two main types of streams: Byte Streams for handling data as individual bytes and Character Streams for text-based data. It highlights the importance of I/O for reading from input sources and writing to output destinations. Additionally, it mentions the relevant Java packages that provide classes and methods for I/O operations.

Uploaded by

f49077041
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views1 page

Java Unit - 3

The document discusses the fundamental concepts of Input/Output (I/O) in Java, focusing on the two main types of streams: Byte Streams for handling data as individual bytes and Character Streams for text-based data. It highlights the importance of I/O for reading from input sources and writing to output destinations. Additionally, it mentions the relevant Java packages that provide classes and methods for I/O operations.

Uploaded by

f49077041
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

UNIT :- 3

Elementary Concepts of Input/Output

At its core, I/O in Java revolves around the idea of streams. A stream is a sequence of data that flows from
a source to a destination. Java provides two main types of streams:

1. Byte Streams: These streams handle data in the form of individual bytes (8-bit units). They are
suitable for all types of data, including binary files (like images, audio, video) and text files (where
each character is treated as one or more bytes depending on the encoding).
2. Character Streams: These streams handle data in the form of characters. They are specifically
designed for text-based data and automatically handle character encoding and decoding. This
makes them more convenient and efficient for working with text.

 Input and Output (I/O) are fundamental concepts used for reading data from input sources (like the
keyboard or files) and writing data to output destinations (like the screen or files). Java provides several
classes and methods to handle I/O operations, which are part of the java.io, java.util, and
java.nio packages.

You might also like