Java Programming/Keywords/short

From Wikibooks, open books for an open world
< Java Programming‎ | Keywords
Jump to: navigation, search

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: