Numeric Values Representation in Java

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

Primitive Types

Integral Primitive Type

There are five integral primitive types in Java: byte, short, int, long and char. Of those, the first four (byte, short, int and long) are signed, and char is unsigned.

byte values used one-byte (8 bites) and they are represented in two's complement.

Floating Point Primitive Type

TODO