PrintStream vs PrintWriter

These two streams are carriers of data to a destination. Both look alike, but they differ in some finer concepts. Basically, the OutputStream class (super class of PrintStream) is an abstract class, JDK 1.0, that includes methods to write a stream of bytes in a sequential order The Writer class (super class of PrintWriter) is …

PrintStream vs PrintWriter Read More »