标签:
Java 一共53个关键字,包括2个保留字 goto 和 const 。
| 序号 | 关键字 | 作用 | 用法 | 说明 |
| 01 | public | 访问控制的一种。任何其他类都有public的访问权。默认(未声明,第四种访问控制)是包访问权限 | 用于类、方法、Field | public声明的类名必须和文件名相同 |
| 02 | protected | 访问控制的一种。同一包中其他类和所有子类拥有访问权 | 用于类、方法、Field | |
| 03 | private | 访问控制的一种。任何其他类包括子类都不可访问 | 用于类、方法、Field | |
| 04 | class | |||
| 05 | interface | |||
| 06 | abstract | |||
| 07 | implements | |||
| 08 | extends | |||
| 09 | new | |||
| 10 | import | |||
| 11 | package | |||
| 12 | byte | |||
| 13 | char | |||
| 14 | boolean | |||
| 15 | short | |||
| 16 | int | |||
| 17 | float | |||
| 18 | long | |||
| 19 | double | |||
| 20 | void | |||
| 21 | null | |||
| 22 | true | |||
| 23 | false | |||
| 24 | if | |||
| 25 | else | |||
| 26 | while | |||
| 27 | for | |||
| 28 | switch | |||
| 29 | case | |||
| 30 | default | |||
| 31 | do | |||
| 32 | break | |||
| 33 | continue | |||
| 34 | return | |||
| 35 | instanceof | |||
| 36 | static | |||
| 37 | final | |||
| 38 | super | |||
| 39 | this | |||
| 40 | native | |||
| 41 | strictfp | |||
| 42 | synchronized | |||
| 43 | volatile | |||
| 44 | transient | |||
| 45 | try | |||
| 46 | catch | |||
| 47 | finally | |||
| 48 | throw | |||
| 49 | throws | |||
| 50 | enum | |||
| 51 | assert | |||
| 保留字 | ||||
| 52 | goto | |||
| 53 | const |
标签:
原文地址:http://www.cnblogs.com/ywlaker/p/5123936.html