• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 733
  • Last Modified:

difference between System.out.write and output.write

I want to make sure that my understanding about  the difference between System.out.write and output.write is correct.

System.out.write(buffer, 0, bufferCount);  will write the contents of buffer upto bufferCount to the console
whereas
 output.write(buffer, 0, bufferCount);  will wrtie teh content of buffer upto bufferCount  to the  outputStream (assuming output is outputStream).

Please correct me if I'm wrong
0
javaCaravan0
Asked:
javaCaravan0
  • 3
1 Solution
 
CEHJCommented:
You don't say what type 'output' is ...
0
 
javaCaravan0Author Commented:
output type is servletOutputStream
0
 
CEHJCommented:
Your analysis is right
0
 
CEHJCommented:
:)
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now