,
System.out.print() System.out.println(), , System.out.println() , . - System.out.println() . .
BufferedOutputStream BufferedWriter.
, System.out
. System.out
; C/++ stdout.
, ,
. , , , System.out,
--output.txt.
, , System.out.
,
, System.err.print()
System.err.println().
There is no portable way to get a channel to the "real" console in Java versions prior to 1.6. In 1.6, there is an object class specifically for representing the console: java.io.Console. A reference to this unique object can be obtained from the System class using the static console () method.
But if your requirement is to debug the entire application, while everyone says that using loggers is the best approach.
source
share