<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 11,  comments - 14,  trackbacks - 0

    <<Java Language Specification>>列出了java關(guān)鍵字、保留關(guān)鍵字,
    并舉例說(shuō)明true,false和null都不是java的keywords,而是literals ,盡管他們看起來(lái)很像是keywords。

    3.9 Keywords

    The following character sequences, formed from ASCII letters, are reserved for use as keywords and cannot be used as identifiers (§3.8):

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

    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).

    3.10 Literals

    A literal is the source code representation of a value of a primitive type (§4.2), the String type (§4.3.3), or the null type (§4.1):

      						Literal:
      	IntegerLiteral
      	FloatingPointLiteral
      	BooleanLiteral
      	CharacterLiteral
      	StringLiteral
      	NullLiteral
      
      				


    ?

    posted on 2006-11-29 23:57 jinn 閱讀(2194) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): Java/j2se
    <2006年11月>
    2930311234
    567891011
    12131415161718
    19202122232425
    262728293012
    3456789

    常用鏈接

    留言簿(3)

    隨筆分類(lèi)

    文章分類(lèi)

    相冊(cè)

    網(wǎng)站鏈接

    搜索

    •  

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    主站蜘蛛池模板: 亚洲网址在线观看| 黑人大战亚洲人精品一区| 亚洲最大视频网站| 亚洲香蕉免费有线视频| 亚洲人成片在线观看| 天天影院成人免费观看| 亚洲国产超清无码专区| 女人18毛片a级毛片免费视频| 亚洲精品国产国语| 日韩免费a级在线观看| 亚洲国产精品久久久久秋霞小| 免费理论片51人人看电影| 美女羞羞喷液视频免费| 亚洲视频在线免费| 在线看片免费人成视频福利| 亚洲av最新在线网址| 久久免费公开视频| 国产精品亚洲自在线播放页码| 大学生一级特黄的免费大片视频| 亚洲综合色一区二区三区| 亚洲免费闲人蜜桃| 亚洲产国偷V产偷V自拍色戒| 在线观看免费av网站| 四虎亚洲精品高清在线观看| 高清国语自产拍免费视频国产| 国产亚洲精品91| 国产亚洲综合网曝门系列| **一级一级毛片免费观看| 亚洲国产精品成人AV在线| 国产精品亚洲综合一区| 无码A级毛片免费视频内谢| 亚洲天堂福利视频| 精品久久久久久久免费人妻| 精品久久久久久无码免费| 91亚洲精品第一综合不卡播放| 午夜私人影院免费体验区| 国产vA免费精品高清在线观看| 久久精品国产亚洲AV香蕉| 日韩免费视频网站| 国产好大好硬好爽免费不卡| 亚洲精品日韩一区二区小说|