Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 785 Bytes

keywords.md

File metadata and controls

19 lines (16 loc) · 785 Bytes

关键字

下面是 Java 里面的关键字。不能使用以下任一作为您的程序标识符。关键字 const 和 goto 语句被保留,即使他们目前尚未使用。true, false, 和 null 似乎是关键字,但它们实际上是字面值;你不能使用它们作为你的程序标识符。

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

其中:*表示未使用,**表示是 1.2版本加入,*** 表示 1.4版本加入, **** 表示5.0版本加入