List all words that are key or reserved in Java.
The specification is written as: "The keywords const and goto are reserved, even though they are not currently used".
I.e. goto - is the key word, even if unused.
Therefore, in particular, goto can not be used as an identifier, i.e. to be the name of the package, class, variable, etc.
See the original source:

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Sign Up Now
or Subscribe for future quizzes