File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question in System.out?

 
vikram veera
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
I have question in System.out where (out) stands for what.
Please help me in this.
 
Lalit Sha
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think out is a static variable of System class. This is what I could understand from the API. Can anybody explain this further.
Lalit.
 
ASHISH KUMAR
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
static variable of System class is PrintStream object.
Ashish
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The class System has 3 fields: in, out and err. The "in" field is an InputStream. The "out" and "err" fields are PrintStreams.
PrintStream has the print() and println() methods (as well has several others).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic