We all know what is mean by input and output. In terms of programming input is nothing but giving some data to the program for processing and getting some data is known as output in terms of programming.
Input and output JAVA
When you want to get a input from your keyboard or from file or any other source and send a output to console or file or any other destination JAVA associates a stream with it.
Now our first questions is what the heck this "STREAM" means ?
STREAM DIAGRAM
So when you want a input from keyboard JAVA associates(connects) your program with the keyboard using a stream as show in the diagram below :
So this is called as stream in JAVA. Easy right.