PROGRAM AREA
Statistics
The Highest Post
Statistics
Count
94
Avg
21.00
Min
21
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.
Post Reply
Back to HomePage
Related Topics
What is Java Virtual machine?
What does it mean, when code is written in discrete units of related code?
What is the first line in a class?
What is the the second line of a class ?
What is access modifiers in Java?
How do you name your class?
What is a method
What is examples of method's Access Modifier?
What is static in Java?
Give some characteristics of Java?
Explain more on discrete units of related code?
what steps need to follow to write your java program?
Describe the variables in Java?
How may primitive data types in Java?
What does assignment operator do?
What is An array?
How does an Array instantiated?
What is JavaScript prototype?
What is Functional Interface in Java?
lambda expression in java 8?
What are the four Garbage memory collectors in Java?