Tech moves fast! Stay ahead of the curve with Techopedia!
Join nearly 200,000 subscribers who receive actionable tech insights from Techopedia.
In Java, a keyword is a word with a predefined meaning in Java programming language syntax. Reserved for Java, keywords may not be used as identifiers for naming variables, classes, methods or other entities.
There are 50 reserved keywords in the Java programming language. Because these keywords have predefined functions, they are usually highlighted with different colors in most integrated development environments (IDE) used by Java programmers.
Common Java keywords include abstract, assert, boolean, break, byte, case, catch, char, class, const, continue, default, do, for, while, switch, this and int. The keywords const and goto are reserved but not currently used by the Java language. False, null and true are reserved keywords for literal values.