罗列java中所有的关键字
时间: 2024-04-27 15:23:34 浏览: 140
以下是Java中所有的关键字:
- abstract
- assert
- boolean
- break
- byte
- case
- catch
- char
- class
- const
- continue
- default
- do
- double
- else
- enum
- extends
- final
- finally
- float
- for
- goto
- if
- implements
- import
- instanceof
- int
- interface
- long
- native
- new
- package
- private
- protected
- public
- return
- short
- static
- strictfp
- super
- switch
- synchronized
- this
- throw
- throws
- transient
- try
- void
- volatile
- while
注意:其中 "const" 和 "goto" 关键字虽然被保留,但是并未被使用。
阅读全文