true、false是不是关键字?
java中的关键字有哪些?
结论:true不是关键字
答:
- 48个关键字:
abstract、assert
boolean、break、byte
case、catch、char、class、continue
default、do、double
else、enum、extends
final、finally、float、for
if、implements、import、int、interface、instanceof
long
native、new
package、private、protected、public
return
short、static、strictfp、super、switch、synchronized
this、throw、throws、transient、try
void、volatile
while
- 2个保留字(现在没用以后可能用到作为关键字):
goto、const
- 3个特殊直接量:
true、false、null