Computer Science, asked by dishantji, 1 year ago

list data types available in numerical data type

Answers

Answered by piyushatre29
37

int

float

long int

long double


Answered by AadilPradhan
18

Various data types available in numerical data type in java are:

i) short: The short data type is a 16-bit signed two’s complement integer. Similar to byte, use a short to save memory in large arrays, in situations where the memory savings actually matters.

ii) int: It is a 32-bit signed two’s complement integer.

iii) long: The long data type is a 64-bit two’s complement integer.

iv) float: The float data type is a single-precision 32-bit IEEE 754 floating point. Use a float (instead of double) if you need to save memory in large arrays of floating point numbers.

v) double: The double data type is a double-precision 64-bit IEEE 754 floating point. For decimal values, this data type is generally the default choice.

Similar questions