Java保留关键字 [英] Java Reserve Keywords

查看:149
本文介绍了Java保留关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通用 cast threadsafe 保留java中的关键字?
我知道java中的52个关键字,但正在寻找新的保留关键字列表。

Are generic, cast, and threadsafe reserved keywords in java? I am aware of the 52 keywords in java but looking for the new reserved keyword list.

推荐答案

查看此链接此处。它是Java 6的保留关键字列表。

See this link here. It's the reserved keyword list for Java 6.


    abstract    continue  for           new            switch
    assert (c)  default   goto (a)      package        synchronized
    boolean     do        if            private        this
    break       double    implements    protected      throw
    byte        else      import        public         throws
    case        enum (d)  instanceof    return         transient
    catch       extends   int           short          try
    char        final     interface     static         void
    class       finally   long          strictfp (b)   volatile
    const (a)   float     native        super          while

    (a) not used
    (b) added in 1.2
    (c) added in 1.4
    (d) added in 5.0 

所以,不,你列出的这三个单词都不在保留集中。

So, no, neither of those three words you listed are in the reserved set.

这个关键字列表可以是也可以在3.9节的Java语言规范中找到。

This keyword list can also be found in the Java language specification in section 3.9.

这篇关于Java保留关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆