An assignment statement assigns a value to a variable using the equals operator (=). For example, int x = 5 assigns the value 5 to variable x. The right side is evaluated first, then the result is stored in the variable on the left. This is fundamental to programming.