System.out.print
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, March 2, 2006 10:41 AM


Hello! I don't exactly know is this is the right category for my question. I want to know what is really meant by System.out.print. I keep on using it, but all I know is that it prints something on the screen. I want to really understand what that line is. Please explain.



Regards!

Re: System.out.print

Posted By:   rajeev_ranjan  
Posted On:   Monday, March 6, 2006 04:56 AM

Hi,


System is a predeclared class in java.lang package. This class has a class variable out. Its an object of PrintStream class in java.io package. This class has methodes to write texts on output stream. Here in our program this out point to the statdard output that is console. so calling this method writes what ever we pass in the argument to the console.

Re: System.out.print

Posted By:   John_Zukowski  
Posted On:   Thursday, March 2, 2006 11:33 AM

System is a class in the java.lang package. "out" is a static variable within it of type PrintStream. By default, System.out equates to the console, but that can be changed to another stream. print is a method of PrintStream that takes its argument and writes it to the stream.
About | Sitemap | Contact