Statement
A single, complete instruction in a programming language that tells the computer to perform a specific action.
Examples: assigning values, making decisions, controlling loops, displaying output.
Keyword
A word reserved by the programming language that has a predefined meaning and purpose.
Examples: words like if, else, for, while, int, class that control logic and define data types.
Statement | Keyword |
---|---|
Serve as fundamental units of executable code. | Reserved words within the programming language itself. |
Instruct the computer to perform specific actions. | Carry special meanings and functionalities. |
Conditional Statements: if (condition) {…} | Conditional Keywords: if, else, for, while |