Languages
[Edit]
EN

Java - list of all reserved keywords

2 points
Created by:
leila
435

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
null      

 

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

 

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
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.

❤️💻 🙂

Join