Java Language Keywords
以下是Java编程语言的keyword
(关键字)。你不能将它们中的一个作为你程序的识别符。关键字const
和goto
是保留关键字,现在已经不再使用。true
,false
和null
看起来很像关键字,但是它们其实是literals
(字面量);你也不能将它们作为程序的识别符。
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
Last updated