求教java高手

来源:百度知道 编辑:UC知道 时间:2024/06/04 20:40:32
我初学JAVA想知道一下JAVA的保留字是什么谁能具体给我个答案啊?
给我些具体的保留字好吗?不要关键字

保留字 就是不能在用作自定义的标识符来使用的字符串

比如for 你要是想把他定义为1个变量是非法的

关键字(keywords )

abstract boolean break byte case
catch char class continue default
do double else extends false
final finally float for if
implements import instanceof int interface
long native new null package
private protected public return short
static super switch synchronized this
throw throws transient true try
void volatile while

保留字(reserved words)
const,goto

所有的关键字都是小写,friendly,sizeof不是java的关键字