Here is a list of keywords
in the Java programming language. You cannot use any of the following as
identifiers in your programs. The keywords const and goto are
reserved, even though they are not currently used. true, false,
and null might seem like keywords, but they are actually literals;
you cannot use them as identifiers in your programs.
|
abstract
|
Continue
|
For
|
New
|
switch
|
|
assert***
|
Default
|
goto*
|
Package
|
synchronized
|
|
boolean
|
Do
|
If
|
Private
|
this
|
|
break
|
Double
|
implements
|
Protected
|
throw
|
|
Byte
|
Else
|
Import
|
Public
|
throws
|
|
Case
|
enum****
|
instanceof
|
Return
|
transient
|
|
catch
|
Extends
|
Int
|
Short
|
Try
|
|
Char
|
Final
|
Interface
|
Static
|
Void
|
|
Class
|
Finally
|
Long
|
strictfp**
|
Volatile
|
|
const*
|
Float
|
Native
|
Super
|
while
|
|
*
|
|
not used
|
|
**
|
|
added in 1.2
|
|
***
|
|
added in 1.4
|
|
****
|
|
added in 5.0
|
Reserved words for literal values
·
false
·
null
·
true
No comments:
Post a Comment