This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
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

Win a copy of Soft Skills this week in the Jobs Discussion forum!
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 />
Keith Lynn
Ranch Hand

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

Joined: Nov 12, 2006
Posts: 47
thanks a lot Keith and Prabhu !!!
subject: System.out.println()