procedural programming with Java Flashcards
Objects within a class:(2)
-have the same methods
-can have different data associated with them
syntax
describes allowed arrangements of words and
punctuation in a program (how you write a program)
semantics
describes what happens when you run the
program
There are three commonly recognized types of errors:
syntax error– grammatical mistake in the program
run-time error– error that is not detected until program is run
logic error– mistake in the underlying algorithm for the
program(the outcome is wrong)
Variable
a data container that stores the data values during
program execution.
identifier, rules for constructing identifiers:
The name of a variable or other item in a program,
must not start with a digit
all the characters must be letters, digits, the symbols _ or $
The size range of the integer type
−2^(31) to 2^(31) − 1
Memory used for boolean
1 byte
Memory used for char
2 bytes
Memory used for short
2 bytes
Memory used for int
4 bytes
Memory used for long
8 bytes
Memory used for float
4 bytes
Memory used for double
8 byte
scientific notation or floating-point notation
The literals with an e or E (for exponent) 3.67e5