File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Question in System.out? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Question in System.out?" Watch "Question in System.out?" New topic

Question in System.out?

vikram veera
Ranch Hand

Joined: Dec 26, 2000
Posts: 43
I have question in System.out where (out) stands for what.
Please help me in this.
Lalit Sha

Joined: Jan 11, 2001
Posts: 28
I think out is a static variable of System class. This is what I could understand from the API. Can anybody explain this further.

Joined: Feb 15, 2001
Posts: 11
static variable of System class is PrintStream object.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
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).

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: Question in System.out?
It's not a secret anymore!