Keywords in Java syntax

JAVA keywords

Java keywords, these keywords can not be used for constants, variables and the name of any identifier

Access control

  • private
  • protected
  • public

Class, method and variable modifiers

  • abstract
  • class
  • extends
  • final
  • implements
  • interface
  • native
  • new
  • static
  • strictfp
  • synchronized
  • transient
  • volatile

Program control statement

  • Break
  • case
  • continue
  • default
  • do
  • else
  • for
  • if
  • instanceof
  • return
  • switch
  • while

Error handling

  • assert
  • catch
  • finally
  • throw
  • throws
  • try

Package related

  • import
  • package

basic type

  • boolean
  • byte
  • char
  • double
  • float
  • int
  • long
  • short
  • null

Variable reference

  • super
  • this
  • void

Reserved keywords

  • Goto
  • const

Guess you like

Origin www.cnblogs.com/D-M-C/p/12687873.html