Hi All,
What are the meanings of System,out,println in System.out.println() statement in Java?
System.out.println() statement in Java
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 10, 2011, 10:04 AM EDT
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".
Prabhu RajaRank #861 · 2.6K reputationPosted Oct 10, 2011, 10:19 AM EDT
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
AartiRank #2,383 · 594 reputationPosted Nov 15, 2011, 3:22 AM EST
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.