Unit 2 Vocabulary Flashcards

(42 cards)

1
Q

Any text that is enclosed in double quotes

A

String literal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A data type that uses a small amount of memory to represent a single item of data

A

Primitive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A data type that stores a whole number, positive or negative, or zero

A

int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A data type that stores a positive or negative number including floating-point values

A

double

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A data type that stores either true or false

A

boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Java keyword used to indicate that the value of the variable cannot be changed once it is initialized

A

final

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A special kind of integer division that returns the remainder instead of the quotient

A

Modulus division

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Represented by the = symbol, takes the result of the expression on the right and assigns it to the variable on the left

A

Assignment operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Occurs when an expression evaluates to an int value outside of the allowed range

A

Integer overflow error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The formal implementation, or blueprint, of the attributes and behaviors of an object that the objects of its type support

A

Class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A specific instance of a class with defined attributes

A

Object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The data of an object that will constitute the state of an object

A

Attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Defines the behavior of an object that is performed on an object’s data

A

Method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The act of creating an object of a class for use in a program

A

Instantiation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A specific realization of an object

A

Instance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Java reserved word that is used to create an object

A

new

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

A value that is passed into a constructor or other method to provide the data for the object’s initial state

18
Q

A special method of a class that initializes an object of that type

19
Q

Name of a method including the order and type of parameters

20
Q

Parameter listed in the header of a method

A

Formal parameter

21
Q

The value passed into a method

A

Actual parameter

22
Q

An address that indicates where an object’s variables and methods are stored

A

Object reference

23
Q

A special value used to indicate that a reference is not associated with any object

24
Q

Allows a programmer to use a method by knowing what the method does even if they do not know how the method was written

A

Procedural abstraction

25
Methods that execute code but do not return a value and are not called as part of an expression
Void method
26
Methods that execute code and then return a single value to the calling program and are part of an expression
Non-void method
27
Also called class methods. Invoked by either just using the method name or using the class identifier, the dot notation, and then the method name.
Non-static method
28
Used to represent primitive data types as objects
Wrapper classes
29
The automatic conversion the Java compiler makes between primitive types and their corresponding wrapper classes, int to Integer, double to Double
Autoboxing
30
The automatic conversion the Java compiler makes from the wrapper class to the primitive type, Integer to int, Double to double
Unboxing
31
An expression that evaluates to either true or false
Boolean expression
32
A logical operator in which both conditions must be true for the resulting expression to evaluate to true
AND
33
A logical operator in which if one condition is true, then the resulting expression evaluates to true
OR
34
A logical operator that evaluates to the opposite of the expression
NOT
35
Occurs when Java will not evaluate the second term if the first term is sufficient to determine the truth value of the entire expression
Short-circuited evaluation
36
A law that says: NOT(A AND B) is equivalent to NOT A OR NOT B and NOT(A OR B) is equivalent to NOT A AND NOT B
DeMorgan's Law
37
Interrupt the sequential execution of statements
Conditional/Selection statements
38
Use Boolean logic to decide whether to execute other programming statements. The Boolean expression must be evaluated to be true for the statement to execute.
If statements-one-way-selection
39
Allow the programmer to create a two-way decision tree based on the evaluation of a conditional statement
If-else two-way selection
40
Allows the programmer to set up a chain of conditionals that only produce one result
If-else-if multi-way selection
41
Used to create multi-way selection statements
Nested if statements
42
Two object references that both reference the same object
Aliases