Welcome back to Java Code Online. Java keywords are those which are defined by the programming language. These keywords are used by programmers to code easily. You cannot use keywords in place of variable names, that is not allowed.
Reserved words in Java are actually words which are reserved by the programming language. It might be, that the meaning of these keywords is not defined by the compiler but they are reserved. So you cannot use these also for your variable names in Java.
A list of Java Keywords and Reserved Words is given below. This list is correct as per the Tiger version of Java, that is Java 2.
List of Keywords and Reserved Words in Java:-
So now you have got a good idea about the various keywords in Java, so remember to not to use these keywords and reserved words in your code, or be ready for errors. I will discuss most of these Java Keywords in later posts.
I hope that this article on Java Keywords and Reserved words was beneficial to you in providing you enough idea about the keywords used in Java. For more information on Java keep buzzing Java Code Online.