Thursday, June 4, 2020

List of Java key words

List of java key words : In Java keywords are the words whose meaning has  been already explained to the java compiler. The keywords cannot be used as variable names because if we do so we are trying to assign a new meaning to the keyword, which is not allowed by the compiler. Java has 50 keywords. List of java keywords is given below.

The list of Java Keywords in table format for reference :

abstractassertbooleanbreakbytecase
catchcharclasscontinuedefaultdo
doubleelseenumextendsfinalfinally
floatforifimplementsimportinstanceof
intinterfacelongnativenewnull
packageprivateprotectedpublicreturnshort
staticstrictfpsuperswitchsynchronizedthis
throwthrowstransienttryvoidvolatile
while
 
The keywords const and goto are reserved for future usage, even they are not currently in use.
Note : in java  true, false and null look like keywords, but in actual they are literals.

 

No comments:

Post a Comment

Hello Buddy, if you have any doubts or need any clarification , feel free to comment. Thanks.