Statements

// assignment
aValue = 8933.234;
// increment
aValue++;
// method invocation
System.out.println("Hello World!");
// object creation
Bicycle myBike = new Bicycle();
  • Are roughly equivalent to sentences in natural languages.
  • Form a complete unit of execution.
  • The following types of expressions can be made into a statement by terminating the expression with a semicolon (;): assignment expressions, any use of ++ or --, method invocations, object creation expressions.
  • There are two other kinds of statements: declaration statements and control flow statements.

Statements — Structure map

Clickable & Draggable!

Statements — Related pages: