Do you know Java: Hidden Keywords


Java has a lot of keywords which are not used as identifiers or values.

Though, Java has a lot of keywords, some of them are less known or even not used. More over not used because they cannot be used at all.

The good old goto is one of the two. Since sequence, selection and iteration are enough for Turing machine, goto became unnecessarily, not to mention that understanding the code becomes hard to follow.

The other one is const which hints that the value of a variable cannot be changed after its initialization. But we already have a keyword for this, it is called final.

Java has both goto and const, though, none of them are allowed to be used.

Java keywords can be found in doc.