Java Programming/Keywords/short

short is a keyword. It defines a 16 bit signed integer primitive type.

Syntax:

short <variable-name> = <integer-value>;

For example:

Computer code
short age = 65;


See also: