Tuesday, March 4, 2014

Java keywords - words, that cannot be used in Java as identifiers

There are some words in java which cannot be used as identifiers.

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

No comments: