This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
First, you create an InputStreamReader so you will be able to read characters from a stream of information. Streams are just series of bytes that you can interpret in any way you want. Readers interpret them as readable characters.
The BufferedReader is used to increase performance of the InputStreamReader. If you don't use a BufferedReader, you will only read a couple of bytes from the stream every time you read a portion of text. A BufferedReader however, will read much more bytes in one go, and store them in memory (also known as "data buffering").
Fewer big reads to file systems are much faster than lots of small reads. Using a BufferedReader makes sure that you don't have to worry about this.
Santosh Kumar Nayak
Joined: Aug 02, 2011
Thanks for the descriptive response.
anyways can you tell me:-
How to figure out as when to use Stream classes or use Reader classes for taking input from Input Devices ?