Chapter 3 Flashcards
Variables
An internal place where the computer temporarily stores data..contents can change as the program is running
Every Variable has a data type, ….?
name, scope, and lifetime.
The variable data type determines….?
the type of data the variable can store.
Each data type is a __________?
Class..which means that each data type is a pattern from which one or more objects are created.
Data Type: Boolean-Stores?
A logical value, true or false
Data Type: Char-Stores?
One Unicode character
Data Type: Date-Stores?
date and time info
date range: January 1, 0001 to December 31, 9999
time range: 0:00:00 midnight to 23:59:59
Data Type: Decimal-Stores?
a number with a decimal place
+/- -7.982342343453264564364363234
Data Type: Double-Stores?
a number with a decimal place
+/- -1.79442665463464636
Data Type: Integer-Stores?
integer
-2 kabillion
Data Type: Long-Stores?
integer
-9 kabillion to +9 kabillion
Data Type: Object-Stores
data of any type
Data Type: Short-Stores
integer
range -32,768 to 32,767
Data Type: Single-Stores?
a number with a decimal place
Data Type: String-String?
text; 0 to 2 billion characters
These data types store whole numbers
Integer: -2 billion to 2 billion
Long: -9 kabillion to +9 kabillion
Short: -32, 768 to 32, 767
These data types store numbers with decimal places
Decimal is largest and used for money
Double (first two most commonly used)
Single
This data is the most general and most taxing on computer
Object data type