1、关键字{
abstract, assert,boolean, break, byte, case, catch, char, class, const, continue, default, do, double, else, enum,extends, final, finally, float, for, if, implements, import, instanceof, int, interface, long, native, new,package, private, protected, public, return, short,static, strictfp, super,switch, synchronized,this, throw, throws, transient,
try, void, volatile, while
}
2、保留字{
byValue, cast, false, future, generic, inner, operator, outer, rest, true, var , goto ,const,null
}
3、注释{
//
(单行注释)
/* ...*/
(多行注释)
/**
*
**/
(doc注释 生成doc文档)
}
@annotation
(annotation注释(常称之为注解)用于描述数据的数据){
}
标识符(字母、下划线、数字、美元符){
-不能以数字开头
-不用使用关键字或者保留字最为标识符
-采用驼峰命名法(即所有单词的首字母大写)
}
原文地址:https://www.cnblogs.com/liulei5210/p/10115321.html
时间: 2024-10-11 14:30:55