Updated July 6, 2023

Introduction to Java Keywords
A Java keyword is a reserved word in a programming language that is not used as an Identifier. Java Keywords are called reserved words because they are ‘reserved’ by the language you are using. They have a special meaning which is defined in the library of the language.
The concept in Java Programming Language
Like any other programming language, a Keyword in Java programming language is a reserved word with a special meaning. Keywords are reserved for internal processes and have some predefined actions. In Java, if the keywords are used otherwise, the program or code will encounter a ‘Compile Time Error.’ For ease of use for the programmer and identification of the Keywords, generally, they are a bit ‘highlighted’ in Java.
List of Keywords in Java
We have tried to list the important keywords in use currently in Java below in alphabetical order. You can also observe the working of every keyword by following the given examples for the same. Let’s see these keywords one by one.
1. Abstract: Abstract The keyword is used to declare a class to be used later in the abstract program. Abstract used with a class declaration makes that class an abstract and specifies that the class will be implemented in a subclass at a later stage. Below is an example of the usage of the ‘Abstract’ keyword.

























27. Long: The ‘long’ keyword is again one of the data types for holding whole numbers. They range from -9223372036854775808 to 9223372036854775808. The whole number value should end with an ‘L’.
28. New: The ‘new’ keyword is used to create an object.
29. Package: The ‘package’ keyword is used to create packages.


Below is a publicly defined class ‘test.java’ and another class, class ‘Test2.java’, access it.










Keywords are the tokens in the Java programming language that are reserved and have special meaning. They have a reserved use and a predefined action in the language.
Recommended Articles
This is a guide to Java Keywords. Here we discuss the introduction to Java Keywords, list of important keywords in use currently in Java. You can also go through our other suggested articles to learn more –



