Statistics
The Highest Post







Statistics
Count 98
Avg 20.27
Min 3
Max 21
Angualr Top questions

Details



Peter Agyekum How may primitive data types in Java? There are eight primitive data types in Java. 0 for numbers, false for boolean (holds a value of true or false, requires one bit of memory), and the null character for chars. Integer holds a value of true or false, and so it only requires one bit of memory. A float is a 32-bit floating-point number. A short is a 16-bit two’s complement integer, and it ranges from -2^15 to 2^15-1. A float is a 32-bit floating-point number, which means it can store decimal values. A double is a 64-bit floating-point number, Reference variables, on the other hand, use a class name as their type.