学习资料
b站狂神说: https://www.bilibili.com/video/BV12J41137hu
注释
public class HelloWorld {
public static void main(String[] args) {
// 单行注释
System.out.println("Hello,World");
/* 多行注释 */
/** 文档注释 */
/*
* 文档注释,可使用Javadoc生成文档
*
*
* */
}
}
关键字
abstract | assert | boolean | break | byte |
---|---|---|---|---|
case | catch | char | class | const |
continue | default | do | double | else |
enum | extends | final | finally | float |
for | goto | if | implements | import |
instanceof | int | interface | long | native |
new | package | private | protected | public |
return | strictfp | short | static | super |
switch | synchronized | this | throw | throws |
transient | try | void | volatile | while |
标识符
- 所有的标示符都应该以字母(A-Z或者a-z),