Java编程语言的关键元素
发表时间: 2023-07-02 17:41
Java语言关键字(Java Language Keywords):被Java语言赋予特殊含义,用做专门用途的单词,Java中的关键字都是小写的。Java语言共定义了50个关键字,分别为:
if else switch case default do while for break continue return goto
byte short int long float double char boolean void
private protected public
package import
abstract final static volatile synchronized
class extends implements interface super this new instanceof enum
try catch finally throw throws
native strictfp transient assert
goto const
Java官方关键字的网址:
https://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html