In this statement "System" is the class, "out" is the object of that class,
No, out
is a static field within System
. It's a field which returns a reference to a PrintStream
. It's not an instance of System
. So you can use:
PrintStream stream = System.out;
stream.println("Foo");
(It's important to distinguish between classes, objects, fields, references etc by the way. Taking some time to get the terminology right can really help you understand it correctly.)