Java中的53个关键字
一、 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
本文详细介绍了Java编程语言中的53个关键字,包括抽象、断言、基本类型、流程控制、类与接口、异常处理、访问修饰符、内存管理等核心概念。同时,提到了两个保留字`goto`和`const`,虽然目前未使用,但可能在未来版本中启用。此外,还特别指出`true`、`false`和`null`三个特殊常量在Java中的作用。
1634

被折叠的 条评论
为什么被折叠?



