wood burning stoves
The moose likes Java in General and the fly likes System.out.println() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "System.out.println()" Watch "System.out.println()" New topic


Ravissant Markenday
Ranch Hand

Joined: Nov 12, 2006
Posts: 47
hi everyone!

Could anyone please give me the exact meaning of the statement System.out.println();. All i know the moment is that this statement prints to the output stream.

So what i want to know is: what are the terms System, out and println taken individually?

Thanks in advance,

Ravissant Markenday
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

System is a class which has out static variable referring to PrintStream class. println is a method from PrintStream class.
[ December 09, 2006: Message edited by: Prabhu venkatachalam ]

Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2398
System is a class in the java.lang package. out is a static field in System of type PrintStream which is in the java.io package. println is a method defined in PrintStream.
Ravissant Markenday
Ranch Hand

Joined: Nov 12, 2006
Posts: 47
thanks a lot Keith and Prabhu !!!
I agree. Here's the link: http://aspose.com/file-tools
subject: System.out.println()
jQuery in Action, 3rd edition