Fifth International World Wide Web Conference
Analysis of HelloWorld Program
- A
class
statement, which introduces the class to be
defined.
- Identifier following the class keyword is the name by which the class will
be referenced.
- Set of possible modifiers on the class statement which affects its
utilization by other classes.
- A
main
method.
- Prototype (including the modifiers) must be written as shown to indicate
the Java program starting point.
- A
void
method must not return a value.
- Note that
String
is part of the Java language, so no special
headers or declarations are needed to use it.
- A call to the method
println
, which is defined in the Java
library.
- Java compiler will use the System class definition to do argument type
checking
- Java run-time system will use the System class to perform the
println
method
Java - An Introductory Language Tutorial
(E.A.Johnson)