Java is a high-level, object-oriented, platform-independent programming language. It was developed by James Gosling at Sun Microsystems and officially released in 1995. Java is designed to be write once, run anywhere (WORA) — which means code written in Java can run on any platform that supports Java without modification.
| Keyword | Description |
| abstract | Specifies that a class or method is abstract |
| assert | Used for debugging and validating assumptions |
| boolean | Defines a variable with true or false |
| break | Exits a loop or switch statement |
| byte | 8-bit integer type |
| case | Defines a case in a switch statement |
| catch | Handles exceptions |
| char | 16-bit character type |
| class | Declares a class |
| continue | Skips current loop iteration |
| default | Default case in a switch statement |
| do | Starts a do-while loop |
| double | 64-bit floating point type |
| else | Specifies block if condition is false |
| enum | Defines an enumerated type |
| extends | Indicates inheritance |
| final | Defines constants or prevents overriding |
| finally | Block always executed after try-catch |
| float | 32-bit floating point type |
| for | Starts a for loop |
| if | Conditional statement |
| implements | Implements an interface |
| import | Imports other classes or packages |
| instanceof | Checks if object is an instance |
| int | 32-bit integer type |
| interface | Declares an interface |
| long | 64-bit integer type |
| native | Links to native code (non-Java) |
| new | Creates new objects |
| null | Represents a null reference |
| package | Defines a package |
| private | Access modifier |
| protected | Access modifier |
| public | Access modifier |
| return | Exits a method and returns a value |
| short | 16-bit integer type |
| static | Denotes a static method or variable |
| strictfp | For consistent floating-point behavior |
| super | Refers to superclass |
| switch | Multiple-branch statement |
| synchronized | Controls thread access |
| this | Refers to current object |
| throw | Throws an exception |
| throws | Declares exceptions |
| transient | Prevents serialization |
| try | Defines a block to test for errors |
| void | Specifies no return value |
| volatile | Prevents compiler optimization |
| while | Starts a while loop |