在http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html中有这么一句Here's a list of keywords in the Java programming language. You cannot use any of the following as identifiers in your programs. The keywords const and goto are reserved, even though they are not currently used. true, false, and null might seem like keywords, but they are actually literals; you cannot use them as identifiers in your programs. 
那么我该如何理解这句话,const和goto是算是Java的保留关键字呢,还是算是保留字呢,也就是说,如果有人问我Java有多少个关键字,我是该回答48个还是50个,有人问我Java的保留字,我是不是不能说有const和goto呢?

解决方案 »

  1.   

    谁这样问你你就抽他这句话里的keywords就是java语法用的单词,你不可以用
    reserved就是说这些字虽然java语法不用,但你也不可以用想细抠这些概念,就不要翻译成中文。
      

  2.   

    const and goto 在JAVA中是不用了,但是他们还是保留字