Java - list of all reserved keywords

2 points
Created by:

1. Java reserved keywords introduction.

Java has set of keywords that are words reserved for Java compilar, and can't be used for naming purpose during coding like naming class, method or variable.
For example if we use one of the keyword as variable name we will get compilation error.

2. Java reserved keywords list presented in table.

abstract assert boolean break
byte case catch char
class const continue default
do double else enum
extends final finally float
for goto if implements
import instanceof int interface
long native new package
private protected public return
short static strictfp super
switch synchronized this throw
throws transient try void
volatile while true false


ture, false and null are not reserved words, but we can't use them for naming purposes.


Native Advertising
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂