Java Keywords

Java has reserved words that cannot be used as identifiers.

Common Keywords

  • class, interface, extends, implements, new
  • public, private, protected, static, final, abstract
  • void, int, double, char, boolean, long, short, byte, float
  • if, else, switch, case, default, for, while, do, break, continue, return
  • try, catch, finally, throw, throws
  • import, package, this, super
  • synchronized, volatile, transient, instanceof, enum, assert