Mega Code Archive

 
Categories / Java Tutorial / Statement Control
 

An Overview of Java Statements

In programming, a statement is an instruction to do something. It controls the sequence of execution of a program. In Java, a statement is terminated with a semicolon and multiple statements can be written on a single line. x = y + 1; z = y + 2; In Java, an empty statement is legal and does nothing: ;