Monday, February 15, 2016

Keywords

KeyWords

There are some specific words are reserved for the compiler. Every compiler has some keywords. In Java every keyword always be small. There are 50 keywords in Java, because keywords are special for the compiler we cannot use these words for our purpose i.e. variables name, constant name and any other identifier we will learn in future.

  • abstract
  • assert
  • boolean
  • break
  • byte
  • case
  • catch
  • char
  • class
  • const
  • continue
  • default
  • do
  • double
  • else
  • enum
  • extends
  • final
  • finally
  • float
  • for
  • goto
  • if
  • int
  • interface
  • long
  • native
  • new 
  • package
  • private
  • protected
  • public
  • return
  • short
  • static
  • strictfp
  • super
  • switch
  • synchronized
  • this
  • throw
  • throws
  • transient
  • try
  • void
  • volatile
  • while
  • false
  • null
  • true
Just go through in those words you become expert when you will use in your program.

No comments: