Numeric Values Representation in Java: Difference between revisions
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
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.
Floating Point Primitive Type
TODO
- Primitive Types
- Wrapper Types, auto-boxing.
- Number https://www.geeksforgeeks.org/java-lang-number-class-java/
- BigInt
- https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html
- https://docs.oracle.com/javase/tutorial/java/data/numberclasses.html
- https://www.inf.unibz.it/~calvanese/teaching/06-07-ip/lecture-notes/uni04.pdf
- https://www.ntu.edu.sg/home/ehchua/programming/java/datarepresentation.html