Java View all facts Glossary Help |
syntactic unit > scoping unit > block > body |
body comparison table |
Subject | have syntax | be part of | has definition | have purpose | contain | is a subtopic of | is a synonym of | have part |
---|---|---|---|---|---|---|---|---|
class body | { | A block that specifies the variable declarations, the methods and the constructors for the class | to specify the variable declarations, methods and constructors for a class | declarations for | Classes | class definition block | ||
interface body | 1 interface definition | One of two parts of an interface definition (the other part is the interface declaration) | to specify the constant declarations and method declarations of an interface | several statements surrounded by braces | Interfaces | constant declarations and method declarations | ||
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 |
Next block: catch block Up: block Previous block: nested block