Statements

index
BASIC

Lines of Java code are classified as either declarations or statements.

Just to confuse things, the two can be combined in an "initializing declaration," for example,
     int count = 0;
or even
     String result = someOtherString.substring(0, 5);
(these are still considered declarations).

Here are the types of statements available in Java:

assignment statements for loops
assert statements if statements
blocks print statements
break statements return statements
continue statements switch statements
do-while loops try statements
enhanced for loops while loops
expressions