Showing posts with label difference between PrintWriter and ServletOutputStream. Show all posts
Showing posts with label difference between PrintWriter and ServletOutputStream. Show all posts

What is difference between PrintWriter and ServletOutputStream?

PrintWriter is a character-stream class where as ServletOutputStream is a byte-stream class.The PrintWriter class can be used to write only character-based information whereas ServletOutputStream class can be used to write primitive values as well as character-based information.