# long Java Keyword

long is a Java primitive type.

A long variable may store a 64-bit signed integer.

## Examples

      long number = 5;
      long anotherNumber = 34590L;
      long octalNumber = 0377;
      long hexNumber = 0xffl;

## Remarks

- The Long class is a wrapper class for the long primitive type. It defines MIN_VALUE and MAX_VALUE constants representing the range of values for this type.

- All integer literals in Java are 32-bit int values unless the value is followed by l or L as in 235L, indicating the value should be interpreted as a long.

Related Topics

byte Java Keyword

int Java Keyword

short Java Keyword