// 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.
- The Conditional Operators
- The if-then Statement
- The switch Statement
- Control Flow Statements
- The if-then-else Statement
- The while Statement
- The do-while Statement
- The for Statement
- The break Statement
- The continue Statement
- The return Statement
- Statements, Expressions, and Blocks
- Object: Creating Objects
- Class: Returning a Value from a Method
- Local Classes
- The try-with-resources Statement
- The throw Statement
- Synchronized Methods in Java
- Lambda Expressions