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
EWriter edited this page Dec 24, 2021
·
2 revisions
In Java, 3 streams are created for us automatically. All these streams are attached with the console.
System.out: standard output stream
System.in: standard input stream
System.err: standard error stream
OutputStream class (same for InputStream class)
OutputStream class is an abstract class. It is the superclass of all classes representing an output stream of bytes. An output stream accepts output bytes and sends them to some sink.
Types of Streams
File IO
Buffered IO
Sequence
ByteArray IO
Data IO
Filter IO
Object Stream
Object Stream Field