Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

System.out.println()

 
Ravissant Markenday
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot Keith and Prabhu !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic