This post originated from an RSS feed registered with Java Buzz
by instanceof java.
Original Post: PrintStream Class
Feed Title: Instance Of Java
Feed URL: http://feeds.feedburner.com/blogspot/TXghwE
Feed Description: Instance of Java. A place where you can learn java in simple way each and every topic covered with many points and sample programs.
This class is filer output Stream class, It adds functionality to another output stream , namely the ability to print representation of various data values conveniently.
It is the most convenient class in writing data to another output stream, because of below three reasons.
Unlike other output stream's write() method , write() method of this class never throws an IOException.
Calling flush() method is optional, it is called automatically.
In addition to default write() methods it is defined new methods called print() and println(). These two methods are overloaded to print all types of java data type values including object. Below are the overloaded print() and println() methods list.