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:

It would be very nice if the explanation had, well, explanation as to what these listed keywords do. But of course it's not required.

2023 Feb 16, 9:16:14 AM

Follow CodeGalaxy

Mobile Beta

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