Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

difference between System.out.write and output.write

Posted on 2010-11-22
4
Medium Priority
?
723 Views
Last Modified: 2012-05-10
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
Comment
Question by:javaCaravan0
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 34187231
You don't say what type 'output' is ...
0
 

Author Comment

by:javaCaravan0
ID: 34187290
output type is servletOutputStream
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 34187475
Your analysis is right
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34362396
:)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question