Expression, Statements and blocks

12 0 0
                                    

Expression is a combination of values or variable and operators.
Example:
int x += 4

Statement is an Expression that ends with a semicolon.
Example:
int x += 4;

The example of Statement above is a declaration statement.  There is also a control flow statement which will be introduce later.  The control flow statements control the flow of the execution by using conditions and break it down into branches to where the program should flow.

Block is composed of zero or more Expression/s. It begins with { and end with }.

Java ProgrammingWhere stories live. Discover now