关键字

  • 关键字在java语言当中全部小写

  • 常见的关键字有哪些?

         public
         class
         static
         void
         if
         for
         while
         do
         default
         byte
         short
         int
         long
         float
         double
         boolean
         char
         private
         protected
         switch
         true
         false
         throw
         throws
         try
         catch

    ...............

  • 提醒:关键字不需要单独拿来记忆,编写程序的过程中记忆