Here is how I understand it... "System" is the name of a class that contains the static variable "out", and "println" is a method in the out object. Whatever is passed to println is converted to a string and printed out. Bosun
Bosun (SCJP, SCWCD).
So much trouble in the world -- Bob Marley
Hi You told out is a variable..How come we are using println method in dot notation with the variable. Usually we use it with an object..and is println() method defined in the class System. Hope u will clear my doubt Thanx bye Vinay
System - Class inside java.lang package out - Standard output stream which is always in open state by default and ready to accept output data. If u look into the API for the code of System.java you will see "out" defined as public final static PrintStream out = nullPrintStream(); println() - Method inside the PrintStream class, in our case method of the out object. hence System.out.println(...) will display output onto the console