Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why System.out.println not PrintStream.println ?

807600Oct 26 2007 — edited Oct 27 2007
Hi, just a beginner question

I just wonder why should we use System.out.println, not PrintStream.println ?

the field out in the System class is the instance of PrintStream class, isn't it?

So why don't we just use the PrintStream class directly?

Thanks..

Edited by: riff_almighty on Oct 27, 2007 3:27 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 24 2007
Added on Oct 26 2007
7 comments
518 views