Java Keywords
Keywords are reserved words that have specific meaning in Java. You cannot use them as variable, method, or class names.
Here are some common keywords:
| Keyword | Description |
abstract | Abstract class or method |
boolean | Boolean data type |
break | Break out of a loop |
catch | Catch exceptions |
class | Define a class |
continue | Continue to next loop iteration |
double | Double data type |
else | Else branch |
final | Constant or non-inheritable |
if | If condition |
import | Import a package |
int | Integer data type |
new | New object |
package | Declare a package |
private | Private access modifier |
public | Public access modifier |
return | Return from a method |
static | Static member |
void | No return value |
while | While loop |