Tag: java print


April 14, 2011 · 1 min read
The **PrintStream** is designed to print data at DOS prompt with its print() and println() methods. This stream comes with the ability of **automatic flushing of data**. In contrary to the methods of all I/O streams, the methods of PrintStream class do not throw [IOException](http://way2java.com/exceptions/filenotfoundexception-ioexception/). PrintStream methods are deprecated in favor of PrintWriter, but not **System.out**. There exists a similar class on character streams side, **PrintWriter** with println() method.