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

    Java 关键字列表 (依字母排序 共51组): 
    abstract, assert,boolean, break, byte, case, catch, char, class, const, continue, default, do, double, else, enum,extends, final, finally, float, for, if, implements, import, instanceof, int, interface, long, native, new, package, private, protected, public, return, short, static, strictfp, super, switch, synchronized, this, throw, throws, transient, try, void, volatile, while 
    Java 保留字列表 (依字母排序 共14组) : Java保留字是指现有Java版本尚未使用 但以后版本可能会作为关键字使用。 
    byValue, cast, false, future, generic, inner, operator, outer, rest, true, var , goto ,const,null

    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

  • 相关阅读:
    【持久化框架】Mybatis与Hibernate的详细对比
    [Linux] day03——REHL部署
    [Linux] day02——什么是Linux
    [Linux] day01——运维
    java也可以做出很漂亮的界面
    python的沙盒环境--virtualenv
    Java虚拟机(JVM)中的内存设置详解
    高手教大家如何配置JVM参数
    最全的静态网站生成器(开源项目)
    Java 8 简明教程
  • 原文地址:https://www.cnblogs.com/whf-Staring/p/4815756.html
Copyright © 2011-2022 走看看