Java – File I/O basic introduction

Home/Java - Tutorial/Java - File Input Output/Java – File I/O basic introduction
Java – File I/O basic introduction 2017-08-09T13:50:40+00:00

File Input Output basic introduction

Java provides strong and flexible support for Input Output as it relates to files and networks.
Java programs perform Input Output through stream, an abstraction that either produces or consumes information.
We can apply same I/O classes and methods to any type of device because all streams behave in the same manner.
Java defines two types of streams byte streams and character streams.
Byte streams:
To handle input and output of bytes we have byte streams.
To read and Write binary data we will use byte streams.
Character streams:
To handle input and output of characters we have character streams.
They use Unicode and therefore can be internationalized.
In some cases character streams are more efficient than byte streams.
In next topic we will learn more in detail about byte and character streams.

Prev Next