Statements are similar to sentences in the English language.
A statement tells Java to perform an action. It can include one or more expressions.
There are two types of statements in Java: * Simple Statement * Compound Statement
Simple statements are the actions your program performs.
Throw Statement
The example shown here is an expression statement. Therefore, it is terminated with a semicolon.
System.out.println("Hello, world!");
Compound statements help you group simple statements and control them.
While Statement