Java Programming/Keywords/class

is a Java keyword which begins the declaration and definition of a class.

The general syntax of a class declaration, using, is

class-declaration ::= [ ] [extends-clause] [implements-clause] class-body extends-clause ::= class-name implements-clause ::= interface-names interface-names ::= interface-name [ interface-names] class-body ::=   [member-declarations]   member-declarations = member-declaration [member-declarations] member-declaration = field-declaration | initializer | constructor | method-declaration | class-declaration

The word is optional. If omitted, the class extends the class, as all Java classes inherit from it.

See also:
 * Java Programming/Keywords/new