In this tutorial you will learn about the Java Keywords and its application with practical example.
In Java, there are is a set of reserved words that you cannot use as an identifier. These words are known as “reserved words” or “Keywords”. Keywords are standard identifiers and their functions is predefined by the compiler. We cannot use keywords as variable names, class names, or method names, or as any other identifier. Below is list of available keywords in Java –
In addition to above, you cannot also use
null as identifiers.