December 1999
Intermediate to advanced
816 pages
20h 27m
English
Java has several keywords. You should avoid giving classes, methods, or variables the same names as these keywords. You've already seen several of them, but for completeness, here are several of the common keywords:
| abstract | static | break |
| native | class | if |
| volatile | interface | else |
| public | for | do |
| private | default | while |
| protected | void | switch |
| synchronized | return | case |
| instanceof | package | continue |
| final | import |
Note
Java has the keyword goto , but it is merely reserved. It is not implemented, so you cannot use goto yourself for anything, nor can you, thankfully, use goto in your code.
Read now
Unlock full access