Java Programming/Keywords/long

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

long is a keyword which designates the 64 bit signed integer primitive type.

The java.lang.Long class is the nominal wrapper class when you need to store a long value but an object reference is required.


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

For example:

Computer code
long timestamp = 1269898201;

See also: