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”.
Table Of Contents−
Keywords are standard identifiers and their functions are predefined by the compiler. We cannot use keywords as variable names, class names, method names, or any other identifier. Below is a list of available keywords in Java –
In addition to the above, you cannot also use
null as identifiers.