Category Archives: JAVA

Java Keywords

Java has (50+3) Reserved Words. Out of this 50 are Keywords and 3 are Reserved Words for Literals

Reserved Words are predefined words by Java so they cannot be used as name of Identifiers (variable name, object name or class name )

LIST OF KEYWORDS (50)

DATATYPE CATEGORY(8)
  • byte
  • short
  • int
  • long
  • float
  • double
  • char
  • boolean
FLOW CONTROL (10)
  • if
  • else
  • switch
  • case
  • default
  • break
  • for
  • while
  • do
  • continue
EXCEPTION HANDLING (5)
  • try
  • catch
  • finally
  • throw
  • throws
MODIFIERS (11)
  • public
  • private
  • protected
  • abstract
  • final
  • static
  • strictfp
  • native
  • transient
  • volatile
  • synchronized
SOURCE FILE (6)
  • class
  • extends
  • interface
  • implements
  • package
  • imports
OBJECT- LEVEL (4)
  • new
  • this
  • super
  • instanceof
METHOD-LEVEL (2)
  • void
  • return
UNUSED (2)
  • goto
  • const
OTHERS (2)
  • assert
  • enum

RESERVED WORDS FOR LITERALS

PREDEFINED CONSTANTS (3)
  • true
  • false
  • null