Java View all facts Glossary Help |
syntactic unit > scoping unit > block > body > method body |
method body comparison table |
Subject | has definition | have purpose | contain | is a subtopic of | is a kind of |
---|---|---|---|---|---|
body | A block that is not nested inside another block | to create a new scope and/or to create a compound statement | several statements surrounded by braces | Statements and Expressions | block |
method body | One of two parts of an method definition (the other part is the method declaration) | to specify the constant declarations and variable declarations of a method | 0 or more local variable declaration | Methods | body |
Next body: class body Up: body Previous body: interface body