Java White Papers
Java I/O: Print Streams
Overview System.out is the first output stream most Java programmers encounter. System.err is probably the second. Both are instances of the java.io.PrintStream class. PrintStream is a subclass of FilterOutputStream that converts numbers and objects to text. System.out is primarily used for simple, character-mode applications and for debugging. Its raison d'etre is convenience, not robustness; print streams ignore many issues involved in internationalization and error checking. This makes System.out easy to use in quick-and-dirty hacks and simple examples, while simultaneously making it unsuitable for production code, which should use the java.io.PrintWriter class instead.PrintStream is not limited to the console.
| Publisher | O'Reilly Media | File Format | |
|---|---|---|---|
| Date Published | May 2005 | ||
| Format | Book chapters | ||
| Topics | |||



