Numeric Values Representation in Java: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:
==Integral Primitive Type==
==Integral Primitive Type==


There are five integral primitive types in Java: [[Java_Language#byte|byte]], [[Java_Language#short|short]], [[Java_Language#int|int]], [[Java_Language#long|long]] and [[Java_Language#char|char]]. Of those, the first four (<code>byte</code>, <code>short</code>, <code>int</code> and <code>long</code>) are signed, and <code>char<code> is unsigned.
There are five integral primitive types in Java: [[Java_Language#byte|byte]], [[Java_Language#short|short]], [[Java_Language#int|int]], [[Java_Language#long|long]] and [[Java_Language#char|char]]. Of those, the first four (<code>byte</code>, <code>short</code>, <code>int</code> and <code>long</code>) are signed, and <code>char</code> is unsigned.


==Floating Point Primitive Type==
==Floating Point Primitive Type==

Revision as of 23:02, 5 April 2020