System.in
Default entry of type InputStream
, usually connected to the keyboard in terminal / console-oriented programs.
System.out
Standard output of type PrintStream
. Usually sends the data recorded on it to the console / terminal. Much used by console-based programs such as command line tools ( grep
, find
).
System.err
Error output of type PrintStream
. It works like System.out, except it is used to send error messages.
In a terminal-oriented Java application, both outputs will be the same (the command line), but you can reconfigure them so that Sistem.out continues to print to the terminal, and System.err writes to a file, for example.
This reconfiguration can be done directly on the terminal as these examples.