50 Keywords of Java

A Java keyword is one of the 50 reserved keywords for a programming language. Each keyword has a specific meaning in the language. These 50 keywords are already known in Java.

  • Keywords cannot be used as an identifier for class, subclass, variable, and methods.
  • Keywords are case-sensitive.

Here is a list of keywords in the Java programming language:

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

Some significant points about Java keywords:

  • const and goto are reserved words but not used.
  • True, false and null are literals, not keywords.
  • All keywords are in lower-case.

Source: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/keywords.html

Contributed by: Poonam Tomar

Full stack Java Developer

   Buy me a coffee!



Download file

Leave a Reply

Notify of
Close Menu