what numeric data types are available in Java?
Answers
Answered by
1
Answer:
Explanation:
There are six numeric types four integer and two floating point:
- byte 1 byte -128 to 127.
- short 2 bytes -32,768 to 32,767.
- int 4 bytes -2,147,483,648 to 2,147,483,647.
- long 8 bytes -9,223,372,036,854,775,808 to 9,223,372,036,854,775,80.
- float 4 bytes 7 decimal digits.
- double 8 bytes 16 decimal digits.
Answered by
1
Answer:
There are six numeric types four integer and two floating point:
- byte 1 byte -128 to 127.
- short 2 bytes -32,768 to 32,767.
- int 4 bytes -2,147,483,648 to 2,147,483,647.
- long 8 bytes -9,223,372,036,854,775,808 to 9,223,372,036,854,775,80.
- float 4 bytes 7 decimal digits.
- double 8 bytes 16 decimal digits.
Hope it helps...
Similar questions