Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

signed and unsigned data types in java

Java does not support unsigned data types. The byte, short, int, and long are all signed data types. For a signed data type, half of the range of values stores positive number and half for negative numbers, as one bit is used to store the sign of the value. For example, a byte takes 8 bits; its range is -128 to 127.
 
PREVIOUS NEXT
Tagged: #signed #unsigned #data #types #java
ADD COMMENT
Topic
Name
5+9 =