Professional Documents
Culture Documents
FUNDAMENTALS
Objectives:
not part of the program itself, but used for documentation purposes.
It is good programming practice to add comments to your code.
A comment is indicated by the delimiters “/*” and “*/”. Anything
within these delimiters are ignored by the Java compiler, and are
treated as comments.
The next line,
public static void main(String[] args) {
or can also be written as,
public static void main(String[] args)
{
indicates the name of one method in Hello which is
the main method. The main method is the starting
point of a Java program.
The next line is also a Java comment,
//prints the string "Hello world" on screen