常用的关键字如下:
abstract (抽象) | continue (中断单次循环,继续) | for (循环语句) | new (新建) | switch (多分支条件) |
assert (断言) | default (多分支的默认选项) | if (条件语句) | package (类包) | synchronized (同步) |
do/while (循环语句) | goto (跳转到) | break (中断) | import (引入类) | case (分支情况) |
else (否则) | boolean (布尔真假类型) | double (双精度) | byte (字节) | short (短整数) |
char (字符) | long (长整数) | enum (枚举) | int (整数) | float (单精度浮点) |
class (类) | private (私有) | public (公共) | extends (继承) | interface (接口) |
implements (实现) | protected (受保护) | throws (抛出,介词) | throw (抛出,动词) | try (尝试) |
catch (捕获) | final (最终的) | this (对象引用) | instanceof (实例判断) | return (返回) |
transient (瞬时的) | static (静态的) | void (空的) | strictfp (精确浮点) | volatile (线程安全的修饰符) |
const (常量) | native (本地化) | super (超级的) |