Method Definitions
•
[
protection
][
linkage
][
resulttype
] name
([
parameter declarations
])
{[
declarations
]instructions}
•
/* 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 !");
•
}
•
}