- 識別子
- 1文字目は、英字、ドル記号($)、アンダースコア(_)のみ
- 数字は2文字目以降に使用可能
- 予約語は使用不可
- 予約後を識別子に含めた場合はコンパイルエラー
- 予約語ではないが、リテラル(定数)として意味があるため識別子として使用不可
- true
- false
- null
- 予約語
- abstract
- assert
- boolean
- break
- byte
- case
- catch
- char
- class
- const
- continue
- default
- do
- double
- else
- enum
- extends
- final
- finally
- float
- for
- goto
- if
- implements
- new
- package
- private
- protected
- public
- return
- short
- static
- strictfp
- super
- switch
- synchronized
- this
- throw
- throws
- transient
- try
- void
- volatile
- while
0 件のコメント:
コメントを投稿