Java 中的关键字和保留字

关键字:

Java 语言中已经事先定义好了的,有着特殊含义和用途

访问控制 类、方法和变量修饰符 程序控制 异常处理 包相关 基本类型 变量引用
public abstract break try import boolean super
private class continue catch package byte this
protected extends retur throw   char void
  final do thows   double  
  implements while     float  
  interface if     int  
  native else     long  
  new for     short  
  static instanceof     null  
  strictfp switch     true  
  synchronized case     false  
  transient default        
  volatile          

保留字:也是 Java 语言中事先定义好的,但是现在没有任何用途

保留下来的,说不定某天会给予它们用途

两个保留字:goto、const

原文地址:https://www.cnblogs.com/sch01ar/p/9032059.html