Statements in java

Java statements are instructions that tell the programming language what to do. A basic statement, like an assignment statement, assigns a value to a variable.
for example :

 int x= 5;
All Java statements must end in a semicolon (;). This tells Java that it should attempt to process all information up to that semicolon.