Hi All,
What are the meanings of System,out,println in System.out.println() statement in Java?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AartiPosted Nov 15, 2011, 8:22 AM
Following is the description of each word in the statement.
To say simple, println() is a method of PrintStream class. out is an object of PrintStream class defined in System class.
So, we are calling println() with out object and out object with System class
Thanks.
Prabhu RajaPosted Oct 10, 2011, 2:19 PM
The out is a static member in the System class, being an instance of PrintStream. And println is a normal (overloaded) method of the PrintStream class.
For more Reference : Click Here
Javeed M ShaikhPosted Oct 10, 2011, 2:04 PM
Basically it prints the line outline on the console and this is the same as Console.WriteLine in C#, you can find out more about this in the following article.
http://luckytoilet.wordpress.com/2010/05/21/how-system-out-println-really-works/
Please do not forget to mark "Accepted Answer".