(java@oneshot)logo/  logo/  logo/  logo/


Java Tutorial » Statement Control » Statement  

Some expressions can be made statements by terminating them with a semicolon. For example, x++ is an expression. However, this is a statement:


Statements can be grouped in a block. A block is a sequence of the following programming elements within braces:

  1. statements
  2. local class declarations
  3. local variable declaration statements
4.1.1. An Overview of Java Statements
4.1.2. Expressions
4.1.3. Declaring and defining multiple variables in a single statement
4.1.4. Label a statement block
4.1.5. Spreading a single declaration over several lines
4.1.6. How to write multiple assignments in a single statement
4.1.7. Combining both statements into one
4.1.8. Statement Blocks