I-O All input/output in Java is done using streams. Streams A stream is an abstract representation of input or output device that is a source or destination for data. A stream is a logical entity that produces and consumes information. Stream is a sequence of bytes that flows into or out of program. Input stream: read data, disk file, keyboard, or remote computer. Output stream: when data is written to a stream e.g. file, printer Java Streams 8 bit streams (byte streams) InputStream OutputStream 16 bit streams (character streams) Reader Writer Java™ Application Development on Linux® – Free 599
↧