Computer Programming 1 Flashcards
MIDTERM
Used to specify the set of values and their operations. The values have particular data types because they are stored in memory of the same format and have the same operations defined for them.
Data type
The fundamental data types in Java. These are predefined data types by the language and named by a keyword.
Primitive data types
8-bit signed integer (0)
Byte
16-bit signed integer (0)
Short
32-bit signed integer (0)
Int
64-bit signed integer (0L)
Long
Single-precision 32-bit IEEE (0.0f)
Float
Double-precision 64-bit IEEE (0.0d)
Double
One bit information (false)
Boolean
Single 16-bit Unicode character (‘\u0000’)
Char
A name for a memory location that stores a specific value, such as numbers and letters.
Variable
A memory location whose value cannot be changed during program execution.
Constant
Keyword used to specify that the value stored in the variable_name is fixed and cannot be changed.
final
Refers to converting a value from a specific type to a variable of another type.
Type casting
The conversion of the lower precision data type to a value of a higher precision data type.
Widening conversion (implicit casting)
The conversion of a higher precision data type into a blue of a lower precision data type.
Narrowing conversion (explicit casting)
These symbols tell the compiler or interpreter of the program to perform a specific mathematical, relational, or logical operation and produce the final result.
Operators
Used to perform basic mathematical operations on numerical values.
Arithmetic operators