Title: Key Concept - Expressions, Statements, Blocks
Course: CPS 189: Java Certification - Review, Practice & Prepare (Development) > Section: (OLDstyle) Learning Modules

An expression is some combination of:

1. constants
2. variables
3. operators
4. method calls.

After evaluation, an expression returns a value and a data type.

A statement is a unit of execution. There are three types of statements:

- Expression statements for:
  - Value assignment
  - Method call
  - Object creation
- Declaration statements for:
  - Variable declaration and optional value assignment
  - Constant declaration
- Control flow statements for:
  - Decision-making – if-then, if-then-else, and switch
  - Looping – for, while, and do-while
  - Branching – break, continue, and return
- A block is a sequence of zero or more statements enclosed by curly braces.

For more information about expressions, statements, and blocks:

- Click this link to view Oracles's documentation: expressions, statements, and blocks
- Level 1 Study Materials: Unit 1