Java View all facts Glossary Help |
syntactic unit > statement |
statement comparison table |
Subject | have syntax | have example | occur | be part of | is part of | has definition | have purpose | be | contain | is a subtopic of | is a synonym of | import | divide into | locate |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
control flow statement | to control the flow of execution of a program | not more than one line long if possible | Loops and Decision Making | control statement | ||||||||||
expression statement | An expression followed by a semicolon | not more than one line long if possible | Statements and Expressions | |||||||||||
import statement | import packageName.* | //Import the Circle class from the graphics package | definition | A statement that permits using references to other packages without prefixes | to allow a class to use the facilities of another package | not more than one line long if possible | Packages | import declaration | 1 member class of a package or imports on demand 0 or more member classes from a package |
| ||||
incrementor | loop | to update a variable set in an initializer | not more than one line long if possible | Loops and Decision Making | ||||||||||
initializer | loop | to set up an initial condition for a loop, often initializing a variable | not more than one line long if possible | Loops and Decision Making | ||||||||||
long statement | not more than one line long if possible | Statements and Expressions | multiple lines such that the second and subsequent lines begin with an operator and are indented | |||||||||||
package statement | package packageName | package com.naviseek.canasta | at the beginning of a file | definition | A statement that declares the name of the package the file defines | to specify the name of the package to which the compilation unit in which the package declaration is put belongs | the first statement in the source file except for comments | package information about the class in the source file | Packages | package declaration |
Next syntactic unit: symbol Up: syntactic unit Previous syntactic unit: scoping unit