•/* Sample program to
write "Hello World" */
•class HelloWorld {
• // No data declarations in this class
• public static void main(String[] arguments) {
• // No data declarations in this method
• System.out.println("Hello World !");
• }
•}
Method parameters in C and Java are always
passed by VALUE !
In C variable parameters are created by
passing pointers by value.
Even when there are no parameters, the () need
to be present.
The parameters of main are the arguments
of the run command