zoukankan      html  css  js  c++  java
  • java关键字,保留字

    Java语言有51个保留关键字,其中const和goto虽然被保留但未被使用。你不能使用保留关键字来命名类、方法或变量。

    一、保留关键字

    数据类型:

    Boolean   int   long   short   byte   float   double   char   class   interface

    流程控制:

    if    else   do   while   for   switch   case   default   break   continue   return   try   catch   finally

    修饰符:      

    public   protected   private   final   void    static   strictfp    abstract    transient

    synchronized    volatile   native

    动作:          

    package   import    throw   throws    extends   implements   this   Super   instanceof   new

    保留字:      

    true    false   null   goto   const

  • 相关阅读:
    LeetCode-434-字符串中的单词数
    LeetCode-415-字符串相加
    字符串
    序列
    元组
    列表
    repr()与str的区别
    输出函数print()
    输入函数input()
    MySQL中快速复制数据表方法汇总
  • 原文地址:https://www.cnblogs.com/vhyc/p/9487214.html
Copyright © 2011-2022 走看看