Java   View all facts   Glossary   Help
syntactic unit > scoping unit > block > body
Next blockcatch block    Upblock    Previous blocknested block   

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
{
class element
}
where class element can be 0 or more of: variable declarations, constructors, initialization blocks, methods
 A block that specifies the variable declarations, the methods and the constructors for the classto specify the variable declarations, methods and constructors for a classdeclarations forClassesclass definition block 
interface body 1 interface definitionOne of two parts of an interface definition (the other part is the interface declaration)to specify the constant declarations and method declarations of an interfaceseveral statements surrounded by bracesInterfaces 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 method0 or more local variable declarationMethods  

Next blockcatch block    Upblock    Previous blocknested block