• Post Reply Bookmark Topic Watch Topic
  • New Topic

HFSJ question on println() and write()

 
Gunaselan Varathan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a question on HFSJ, pg 132. In Bang section. It says that on the second line, "Notice that to write to servletOutputStream you WRITE,but write to a PrintWriter you ..PRINTLN".

my question is both ServletOuputStream and Printwriter api has methods, for println(),print() and write(). can some one help me why author specificaly menthon to use WRITE method for servletoutpurstream and Print/println method for print writer.

also can some one guide me will the exam contains question on which method you use to output jsp code using these methods.

Thanks
Guna
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!