Identifer versus keyword

前端 未结 5 1589
北海茫月
北海茫月 2021-02-16 00:05

I read in the book for OCJP for Java6 the part with assertions. I reached the part where it gives me an overview of how the compiler reacts if the word \'assert\' is used as key

5条回答
  •  难免孤独
    2021-02-16 00:15

    I assume an identifier is your own (function name, var name, ...); and a keyword is 'class' or 'assert' or 'while' -- language defined identifiers, in other words

提交回复
热议问题