Primitive Data Types
Ace your homework & exams now with Quizwiz!
How many primitive data types are there in java?
8
What are float and double used for?
Floating-point real number.
What is a char used for?
It holds one character (in Unicode)
What is an object data type?
Its class
Is String a primitive data type?
No
What are int, byte, short, or long variables used for?
Storing numbers
What is the difference between the various primitive data types that hold numbers?
They differ on the range of numbers they can represent, and the more numbers they hold the bigger their size gets
Possible values for a boolean?
True or false