Unit 2 Vocab

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/43

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

44 Terms

1
New cards

Actual parameter

The value to assign to the formal parameter

2
New cards

Call by value

Copying the value of the actual parameter to the constructor's formal parameter

3
New cards

Formal parameter

The value to be passed to a constructor or method

4
New cards

Local variable

A variable declared and accessible within a specific block of code

5
New cards

Overloading

Defining two or more constructors or methods with the same name but different signatures

6
New cards

Parameterized constructor

A constructor that has a specific number of arguments to be passed

7
New cards

State

The attributes of an object that are represented by its instance variables

8
New cards

Application program interface

A library of prewritten classes

9
New cards

Library

A collection of methods or reusable components of code

10
New cards

Assignment

Using the assignment operator ( = ) to initialize or change the value stored in a variable

11
New cards

Initialization

Giving a starting value to a variable using the assignment operator ( = )

12
New cards

Literal

A source code representation of a value, such as a number or text

13
New cards

Primitive type

A basic data type that Java predefines

14
New cards

Reference Type

A data type that contains a pointer to the memory location of an object

15
New cards

Compound assignment operator

Ahortcut syntax to perform an operation on both operands and assign the result into the variable on the left

16
New cards

Compound expression

A combination of expressions

17
New cards

Concatenation

When two Strings are joined together

18
New cards

Expression

A combination of data and operators that evaluates to a single value

19
New cards

Operand

The data that is operated on

20
New cards

Truncate

To cut off data from the end

21
New cards

Overflow error

An error that occurs when an operation makes an integer value greater than its maximum

22
New cards

Round-off error

An error due to limited floating-point precision, causing discrepancies in computation

23
New cards

Underflow error

An error that occurs when an operation makes an integer value less than its minimum

24
New cards

Escape sequence

Starts with a \ to indicate how to display a String

25
New cards

Constant

A variable whose value cannot be changed once it has been assigned

26
New cards

Algorithm

A finite set of instructions that accomplish a task

27
New cards

Condition

Determines whether or not to execute a block of code

28
New cards

Iteration statement

A control structure that repeatedly executes a block of code

29
New cards

Selection statement

A statement that only executes when a condition is true

30
New cards

Logical operator

An operator that returns a Boolean value

31
New cards

Two-way selection statement

Specifies a block of code to execute when the condition is true and a block of code to execute when the condition is false

32
New cards

Alias

A reference variable that points to the same object as another reference variable

33
New cards

Nested conditional statement

A conditional statement nested inside of another conditional statement

34
New cards

Compound Boolean expression

An expression using logical operators that evaluates to a Boolean value

35
New cards

Short-circuited evaluation

A process in which the evaluation of a logical expression exits when the result is clear, even before the complete evaluation of the expression

36
New cards

Truth table

A table used to determine the truth values of a Boolean expression

37
New cards

De Morgan's Laws

A set of rules that describe how to simplify complex Boolean expressions

38
New cards

Multi-selection statement

A statement that selects a single action from three or more conditional statements based on which Boolean expression is true

39
New cards

Decrement

To decrease a value by one

40
New cards

Increment

To increase a value by one

41
New cards

Loop control variable

A variable that is changed by a constant value and determines the end of a loop

42
New cards

Off-by-one error

An error that occurs when a loop repeats one time too many or one time too few

43
New cards

Nested loop

A loop inside of another loop

44
New cards

Override

To define a method in a subclass with the same method signature as a method inherited from a superclass