Jump to content
Wikibooks The Free Textbook Project

Java Programming/Keywords/long

From Wikibooks, open books for an open world

This is the current revision of this page, as edited by Strange quark (discuss | contribs) at 18:34, 4 July 2017 (Fix categorization). The present address (URL) is a permanent link to this version.

Revision as of 18:34, 4 July 2017 by Strange quark (discuss | contribs) (Fix categorization)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Syntax:

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

For example:

Computer code
longtimestamp=1269898201;


See also:

AltStyle によって変換されたページ (->オリジナル) /