This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes PrintStream/PrintWriter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "PrintStream/PrintWriter" Watch "PrintStream/PrintWriter" New topic
Author

PrintStream/PrintWriter

thomas
Ranch Hand

Joined: May 26, 2002
Posts: 79
What is the difference between PrintStream and PrintWriter classes?
Both have a number of print() methods which convert the argument to a string and print it based on the character encoding of the underlying platform.
It is my understanding that Stream classes in general do not convert their output to the encoding of the underlying platform, where as Writer classes do. But PrintStream appears to be an exception. If that is the case, what way does it differ from a PrintWriter ?
Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PrintStream/PrintWriter
 
Similar Threads
Is there any newsletter for scjp?
About PrintWriter with println and write
I/O question
differents between PrintWriter and PrintStream
what is the difference between printStream and PrintWriter?