Rethinking the Java Curriculum: Goodbye, HelloWorld!
Subject:   System.out.println
Date:   2003-12-26 23:20:47
From:   anonymous2
Just wanted to note that System is not a package (notice the upper-case first letter), out is not a package, but a static field, and println is a method of the class, which is the type of out.

In the article it said (and I quote): " might give HelloWorld OO points because the println() method of the out class in the System package is being invoked..."

If I remember right, this is the case with C#, where System.Console.Write is used: System is a package, Console is a class within it, and Write is a [static] method of this class (Sorry, but I'm not sure about the C# stuff).

Barak Ori

1 to 1 of 1
1 to 1 of 1