There are some words that the Java folks do not want you to use within your programs as method names, class or interface names, variable names, or as any other identifier. You may use these words only as they were intended by the creators of the Java platform. For this reason these words are called keywords and reserved words.
describes a class that cannot be instantiated. Also, if used to describe a method in a class, any subclasses must implement that method.
assert
A keyword used to evaluate conditions without having to write extensive Exception handling code. It is good for development and testing purposes, but production code should not be strewn with "assert".Indicates whether a value is true or false.
The program path will exit from the block of code when it encounters a "break" statement.
A numeric data type. A byte is equivalent to 8 bits.
case
Used in conjunction with a "switch" statement. The switch statement will several conditions to evaluate. Depending upon which statement is true, then an associated case will execute.catch
Used in conjunction with "try". Catch is used to handle exceptions. The code in a catch block will be executed if an exception occurs. If no exception occurs, then code in the catch block will be skipped.A single character enclosed in single quotes.
A template or blueprint for creating objects. A class defines properties and behaviors for objects that will be created from the blueprint.
const
Not used in Java, but the keyword is reserved. Other programming languages use const to declare a variable as a constant. You should use the "final" keyword instead.