You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Streams move data from one place to another. Streams are categorized into two
input and OutputStream.
InputStream: receives or reads data from a source
OutputStream: sends or writes data to destination
Input and output stream classes are abstract
We can attach Keyboard to DataInputStream similar to keyboard events
in JS
represents data in the form of individual bytes
if a class ends with the word stream, then it
is understood that it is a byte stream
Byte streams are used to handle chars, images, audios and videos
Text Stream
represents data as characters of each 2 bytes
and class name that ends with Reader or Writer are taken as a text
stream. This type of stream stores and receives data in the form
of chars only.