Java保留字是对java编译器有特殊含义的字符串,作为编译器和程序员的一个约定,使其告诉编译器其声名的变量类型、类、方法特性等信息。
1.用于数据boolean byte char double false float int long new short true void instanceof
2.用于语句break case catch continue default do else for if reture switch try while finally throw this super
3.用于修饰abstract fianal native private protected public static synchronized transient volatile
4.用于方法、类、接口、包和异常class extend implements interface ackage import throws