Java   View all facts   Glossary   Help
syntactic unit > scoping unit > block > body > method body
Next bodyclass body    Upbody    Previous bodyinterface body   

method body
subjectfact 
method bodycan contain 0 or more local variable declarationadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:23.0
has definition One of two parts of an method definition (the other part is the method declaration)added by: JK, source: Sun Java Tutorial, reference: Source 2, 2001-10-19 11:37:23.0
has purpose to specify the constant declarations and variable declarations of a methodadded by: JK, 2001-10-19 11:37:23.0
is a subtopic of Methods2001-10-19 11:37:23.0
is a kind of body2001-10-19 11:37:23.0
blockhas example
{
a =5;
b = computeSomething;
}   
2001-10-19 11:36:10.0
has layout example style preferred by Sun:
if(condition) {
// statements
}
2001-10-19 11:36:10.0
has layout example style preferred by the authors:
if(condition)
{
// statements
}
2001-10-19 11:36:10.0
is used as the body of classes, loops, conditional statements and for exception handling    2001-10-19 11:36:10.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0