Java keywords

Java keywords are 50 reserved words which have a very specific meaning in the application code. Programmers should not use these keywords for any other purpose than what they are meant to be.

1. Java keywords features

  • Given is the list has all reserved java keywords. We cannot use any of the following as identifiers in our programs.
  • The keywords const and goto are reserved, even though they are not currently used.
  • true, false, and null might seem like keywords, but they are actually literals; we cannot use them as identifiers in our programs.
  • strictfp was added in JDK 1.2.
  • assert was added in JDK 1.4.
  • enum was added in JDK 1.5.

2. Java keywords list

new
goto
package
double
byte
import
return
int
short
char
interface
void
class
long
volatile
const
float
native

Learning about all keywords in single page is not possible. We will learn about each Java keyword in it’s dedicated tutorial.

Happy Learning !!

Was this post helpful?

Join 7000+ Fellow Programmers

Subscribe to get new post notifications, industry updates, best practices, and much more. Directly into your inbox, for free.

HowToDoInJava

A blog about Java and its related technologies, the best practices, algorithms, interview questions, scripting languages, and Python.