• Post Reply Bookmark Topic Watch Topic
  • New Topic

HFSJ question on println() and write()  RSS feed

Gunaselan Varathan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!