Java Keywords

Keywords are predefined, reserved words used in Java programming that have special meanings to the compiler. For example:


\begin{lstlisting}
int score;
\end{lstlisting}

Here, $\lstinline{int}$ is a keyword. It indicates that the variable $\lstinline{score}$ is of integer type (32-bit signed two's complement integer).

You cannot use keywords like $\lstinline{int, for, class}$, etc as variable name (or identifiers) as they are part of the Java programming language syntax. Here's the complete list of all keywords in Java programming.



Subsections