码迷,mamicode.com
首页 > 编程语言 > 详细

Java文法(6)—keywords

时间:2015-01-22 23:21:27      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:

--------------------------------------------------------------------------------------------------------------------------
说明:
    50 character sequences, formed from ASCII letters, are reserved for use as keywords and cannot be used as identifiers (§3.8).
--------------------------------------------------------------------------------------------------------------------------
文法:
    Keyword: one of
        abstract   continue      for            new            switch
        assert       default      if            package        synchronized
        boolean       do          goto            private        this
        break       double      implements    protected    throw
        byte       else          import        public        throws
        case       enum          instanceof    return        transient
        catch       extends      int            short        try
        char       final      interface        static        void
        class       finally      long            strictfp    volatile
        const       float      native        super        while
    说明:
        The keywords const and goto are reserved, even though they are not currently used. 
        This may allow a Java compiler to produce better error messages if these C++ keywords incorrectly appear in programs.
        While true and false might appear to be keywords, they are technically Boolean literals (§3.10.3). 
        Similarly, while null might appear to be a keyword, it is technically the null literal (§3.10.7).

 

Java文法(6)—keywords

标签:

原文地址:http://www.cnblogs.com/xyhr/p/4242904.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!