![]() |
![]() |
![]() |
![]() |
![]() |
|
Finally, you come to the method's body. In general, a method's body consists of matched braces surrounding a sequence of one or more statements, which tell the Java compiler what computations to perform. In the example, the body exhibits only one statement:
public static void main (String argv[]) {
6 + 9 + 8; <-- Body statement
}
The statement, like most Java statements, consists of an
expression, 6 + 9 + 8, and the statement terminator, a
semicolon, ;.