Object-Oriented Programming with Java Dictionary

Terms used in the course, each with a short definition and the chapter where it is explained. The chapter column links to that chapter's lecture notes.

TermDefinitionChapter
abstract classA class declared with abstract that cannot be instantiated and may contain abstract methods.4.5 · Abstract Classes and Interfaces
abstract methodA method with no body that a subclass must implement.4.5 · Abstract Classes and Interfaces
abstractionHiding the details and showing only the essential features.3.2 · Methods
acceptance testingTesting that runs the system with users on real data to decide whether the customer will accept it.7 · Testing and Debugging
access modifierA keyword (public, protected, private) or the package-private default that determines where a member can be accessed from.4.1 · Objects and Classes
accessor (getter)A get method that returns the value of a field.4.2 · Encapsulation
accumulatorA variable that adds a value on each pass of a loop to build up a result (a running total).1.4 · Flowcharts
ACIDThe four properties of a transaction: atomicity, consistency, isolation, and durability.11 · Database Programming
adapter classA ready-made class that implements every method of a listener interface with an empty body; a subclass overrides only the method it cares about.9 · Graphics and User Interfaces
aggregate functionA function such as COUNT, SUM, AVG, MIN, or MAX that produces a single value from a set of rows.11 · Database Programming
algorithmA method that solves a problem in a finite number of precise steps.1.3 · Algorithms
aliasEither of two reference variables that refer to the same object.3.3 · Arrays
amortized costThe average cost of occasionally expensive operations over a long sequence of calls; appending to an ArrayList takes constant time on average.5 · Collections
annotationA note that starts with @ (such as @Override), is attached to code, and gives information to the compiler.4.3 · Inheritance
anonymous classAn inner class with no name whose single object is created at the point where it is defined.4.1 · Objects and Classes
argumentThe actual value passed to a parameter when a method is called.3.2 · Methods
arrayA structure that holds a fixed number of elements of the same type in consecutive cells.3.3 · Arrays
array initializerThe starting values given inside braces: int[] a = {1, 2, 3}.3.3 · Arrays
ASCIIA 7-bit character encoding for the English alphabet, digits, and control characters.1.1 · Computers
assembly languageA low-level language that writes machine instructions using mnemonics.1.1 · Computers
assertionA statement that compares an expected result with the actual one or checks an assumption.7 · Testing and Debugging
assignmentStoring the value of the expression on the right in the variable on the left (=).2.2 · Syntax Rules
associativityThe rule that decides whether operators of equal precedence are applied left to right or right to left.2.2 · Syntax Rules
atomic operationAn operation that completes in a single indivisible step (AtomicInteger).10 · Threads
auto-commitThe default mode of a JDBC connection: each statement is its own transaction and becomes permanent as soon as it runs.11 · Database Programming
autoboxing / unboxingThe automatic conversion of a primitive value to its wrapper object and back.4.1 · Objects and Classes
AWT (Abstract Window Toolkit)Java's first graphics library (java.awt); today used mostly for Graphics, Color, Font, layout managers, and event classes.9 · Graphics and User Interfaces
base caseThe smallest case, solved directly, that stops the recursion.3.5 · Recursion
batch updateCollecting many statements with addBatch and sending them together with executeBatch.11 · Database Programming
binary heapA complete binary tree stored in an array in which every parent is less than or equal to its children; the internal structure of PriorityQueue.5 · Collections
binary number systemThe base-2 number system, which uses only the digits 0 and 1.1.1 · Computers
binary searchSearching a sorted array by halving the range at each step; O(log n).1.3 · Algorithms
bitA single digit of the binary system: 0 or 1.1.1 · Computers
black-box / white-box testingTesting done only with inputs and expected outputs without looking inside the code, versus testing that uses knowledge of the code's structure to run every branch and loop at least once.7 · Testing and Debugging
blockA group of statements between curly braces.2.2 · Syntax Rules
booleanA type whose only values are true and false.2.2 · Syntax Rules
boundary value analysisChoosing the edge values of each equivalence class and the first values of the invalid region as test inputs.7 · Testing and Debugging
bounded type parameterA type parameter restricted by an upper bound, as in <T extends Base>.4.5 · Abstract Classes and Interfaces
break / continueStatements that exit a loop or skip the rest of the current iteration.3.1 · Control Structures
breakpointA line at which the debugger stops the program.7 · Testing and Debugging
bubble sortA sorting method that compares neighboring elements and swaps them, moving the largest to the end.1.3 · Algorithms
buffer / bufferingAccumulating data in memory and reading or writing it in bulk to reduce disk accesses.8 · Input and Output
busThe shared communication line that connects the processor to memory and to input/output devices.1.1 · Computers
busy waitingWaiting for a condition by testing it continuously in a loop; it keeps a core busy for nothing.10 · Threads
byteA data unit of 8 bits; Java also has a type named byte.1.1 · Computers
byte stream / character streamThe InputStream/OutputStream and Reader/Writer class families.8 · Input and Output
bytecodeThe platform-independent instructions (.class) that javac produces and the JVM runs.2.2 · Syntax Rules
cacheA small, fast memory between the processor and main memory that holds frequently used data.1.1 · Computers
call stackThe stack that holds the frames of the running methods.3.2 · Methods
capacityThe total number of cells in the internal array of a dynamic array; not the same as size(), which counts the filled cells.5 · Collections
carryThe value passed to the next digit when the sum in a digit position exceeds the base.1.1 · Computers
cast (explicit conversion)A conversion written by placing the target type in parentheses: (int) 3.7.2.2 · Syntax Rules
channel (NIO)In NIO, a connection that reads and writes through a buffer in both directions.8 · Input and Output
character (char)A 16-bit type that holds a single UTF-16 code unit.2.2 · Syntax Rules
character encodingThe rule that determines which byte sequences are used to store characters.8 · Input and Output
checked exceptionAn exception that the compiler requires you to catch or declare.6 · Exceptions
classA blueprint that defines the fields and methods of objects.4.1 · Objects and Classes
class invariantA rule that the state of an object must always satisfy.4.2 · Encapsulation
classpathThe root folders where the compiler and the JVM start looking for packages; by default the folder the command is run from (.).4.2 · Encapsulation
code coverageThe proportion of code lines that the tests execute.7 · Testing and Debugging
code pointThe number Unicode assigns to a character; written in hexadecimal with the U+ prefix.1.1 · Computers
collectionA data structure that holds multiple objects together.5 · Collections
Collections FrameworkJava's collection library of interfaces, classes, and algorithms.5 · Collections
collisionTwo different elements falling into the same bucket of a hash table; colliding elements form a chain in the bucket.5 · Collections
commentA note for the reader that the compiler ignores (//, /* */).2.2 · Syntax Rules
comparatorAn object that compares two objects from the outside and defines an alternative ordering.5 · Collections
compare-and-set (CAS)A single atomic operation that writes a new value and returns true if the value is still the expected one, and otherwise changes nothing and returns false.10 · Threads
comparison operatorAn operator such as ==, !=, <, or > that compares two values and produces a boolean.2.2 · Syntax Rules
compile time / run timeThe moment the code is compiled versus the period during which the program runs.4.4 · Polymorphism
compilerA program that translates source code entirely into another language (in Java, into bytecode).2.1 · Programming
componentA visual element placed in a window (JButton, JLabel, and so on).9 · Graphics and User Interfaces
compositionA class holding a field of another class type (has-a).4.3 · Inheritance
compound assignmentAn operator that combines an operation and an assignment (+=, *=).2.2 · Syntax Rules
computabilityThe question of whether a problem can be solved by any algorithm at all.1.2 · Computation and Computational Thinking
computationThe process of producing the output of a problem from its input step by step.1.2 · Computation and Computational Thinking
computational thinkingThe skill of breaking a problem into parts, finding patterns, abstracting, and designing an algorithm.1.2 · Computation and Computational Thinking
concrete classA class with all of its methods implemented that can be instantiated.4.5 · Abstract Classes and Interfaces
concurrency / parallelismTasks making progress in an interleaved way over time versus actually running at the same instant.10 · Threads
conditionA logical expression whose result is true or false.3.1 · Control Structures
conditional (ternary) operatorAn expression of the form condition ? a : b that selects one of two values.2.2 · Syntax Rules
conditional flowChoosing one of several paths according to the result of a condition.1.4 · Flowcharts
constructorA special method called when an object is created with new; it has the same name as the class and no return type.4.1 · Objects and Classes
constructor chainingA constructor calling another constructor with this(...) or super(...).4.3 · Inheritance
containerA component that contains other components (JFrame, JPanel).9 · Graphics and User Interfaces
content paneThe inner area of a window below the title bar; components added with add are placed here.9 · Graphics and User Interfaces
context switchingThe processor switching from one thread to another; the state of the running thread (program counter, registers, stack pointer) is saved and that of the next one is loaded.10 · Threads
continuous integration (CI)Systems (GitHub Actions, Jenkins) that run the tests automatically without the programmer having to ask.7 · Testing and Debugging
control structureA structure that determines the order in which statements run and how many times.3.1 · Control Structures
control unitThe unit that interprets instructions and sequences and directs operations; it decides which register is connected to the ALU and whether a read or write signal goes to memory.1.1 · Computers
covariant return typeAn overriding method returning a subtype of the return type declared in the superclass.4.3 · Inheritance
CPU (central processing unit)The unit that executes instructions and performs calculations.1.1 · Computers
critical sectionA piece of code that accesses shared data and that only one thread may execute at a time.10 · Threads
custom exceptionAn application-specific exception derived from Exception or RuntimeException.6 · Exceptions
daemon threadA helper thread that does not prevent the JVM from shutting down.10 · Threads
data access object (DAO)A design that gathers the SQL operations of a table in one class and returns objects.11 · Database Programming
data hidingMaking fields private and allowing access only through methods.4.2 · Encapsulation
data typeThe type of the data a variable stores (int, double, String, and so on).2.2 · Syntax Rules
databaseA system that stores data in an organized, persistent, and queryable way.11 · Database Programming
database indexAn extra structure that keeps the values of a column in order to speed up searching.11 · Database Programming
deadlockThreads waiting forever for locks held by one another.10 · Threads
debuggerA tool that runs a program step by step and lets you watch its variables.7 · Testing and Debugging
debuggingThe process of finding the cause of a bug and fixing it.7 · Testing and Debugging
declarationIntroducing the type and name of a variable to the compiler.2.2 · Syntax Rules
declarative / imperative knowledgeKnowledge that states what something is versus knowledge that states how to do something.1.2 · Computation and Computational Thinking
declared type / actual typeThe type of a reference variable versus the class of the object it refers to.4.4 · Polymorphism
decompositionSplitting a large problem into small, independent subproblems.3.2 · Methods
decorator (wrapper stream)A stream that wraps another stream and adds a capability to it, such as buffering.8 · Input and Output
default constructorThe no-argument constructor that the compiler adds if no constructor is written.4.1 · Objects and Classes
default methodA method written with a body in an interface that implementing classes get ready-made (Java 8+).4.5 · Abstract Classes and Interfaces
default valueThe value that fields and array elements receive if none is given (0, false, null).2.2 · Syntax Rules
defect / failureThe wrong line of code that reflects the programmer's mistake versus the wrong behavior that appears when that code runs (wrong output, a crash, a hang).7 · Testing and Debugging
defensive copyCopying a mutable object when it enters and when it leaves a class.4.2 · Encapsulation
dependency injectionAn object receiving its dependencies from outside instead of creating them itself.4.5 · Abstract Classes and Interfaces
deque (double-ended queue)A queue that allows insertion and removal at both ends.5 · Collections
design patternA tested, reusable solution pattern for a commonly occurring design problem.4.5 · Abstract Classes and Interfaces
desk checkTracing a diagram or code on paper with a sample input, without a computer.1.4 · Flowcharts
diamond problemThe problem of which version of a common method a class derived from two classes should run when the two override it differently; Java forbids multiple inheritance of classes for this reason.4.3 · Inheritance
do-while loopA loop that runs its body at least once and tests the condition after each iteration.3.1 · Control Structures
dot operatorThe . operator used to access a member of an object or a class.4.1 · Objects and Classes
doubly linked listA list in which each node holds a value and references to the previous and next nodes (LinkedList).5 · Collections
dynamic arrayAn array that grows by copying into a larger array when it becomes full (ArrayList).5 · Collections
dynamic bindingSelecting the version of a method to call at run time according to the class of the object.4.4 · Polymorphism
edge caseA deliberately chosen extreme input such as zero, an empty string, a negative number, or the first or last element of an array; bugs hide here most often.1.3 · Algorithms
effectively finalA local variable that is not declared final but is never changed after it is assigned.4.5 · Abstract Classes and Interfaces
elementA single value of an array, string, or collection.3.3 · Arrays
else-if chainA structure that tries conditions in order and runs the block of the first true one.3.1 · Control Structures
encapsulationGathering data and the methods that work on it in one class and hiding the internal details.4.2 · Encapsulation
enumA type that defines a fixed set of values.4.1 · Objects and Classes
equivalence classA set of inputs that cause the same behavior in the program; choosing one representative from each class is enough.7 · Testing and Debugging
error (Error class)Serious problems that a program usually cannot recover from (OutOfMemoryError).6 · Exceptions
Euclidean algorithmAn algorithm that finds the GCD using the relation GCD(a, b) = GCD(b, a mod b).1.2 · Computation and Computational Thinking
eventA user action such as a click or key press, or a notification from the system.9 · Graphics and User Interfaces
Event Dispatch Thread (EDT)The single thread on which Swing components are built and events are handled.9 · Graphics and User Interfaces
event listenerAn interface or object that defines the methods to be called when an event occurs.9 · Graphics and User Interfaces
event-driven programmingA program whose flow is determined by the order in which events arrive rather than by the order of lines in the code.9 · Graphics and User Interfaces
exceptionAn event that disrupts the normal flow while the program runs and is thrown as an object.6 · Exceptions
exception propagationThe progress of an uncaught exception up the call stack toward the caller.6 · Exceptions
expressionA construct that produces a value when evaluated (3 + 4, x > 0).2.2 · Syntax Rules
factory methodA method that creates an object and returns it as a superclass or interface type.4.4 · Polymorphism
fall-throughExecution continuing into the following cases when a case has no break.3.1 · Control Structures
fetch–decode–execute cycleThe basic operating cycle that the CPU repeats for every instruction.1.1 · Computers
fieldA variable defined in a class body outside the methods; it holds the state of the object.4.1 · Objects and Classes
field hidingRedefining in a subclass a field with the same name as a superclass field; the object then holds two separate variables.4.3 · Inheritance
file pointerA pointer in a RandomAccessFile that marks where reading and writing happen and advances by the number of bytes processed at each operation.8 · Input and Output
finally blockA block that runs whether or not an exception occurs.6 · Exceptions
floating-point numberA number format made of a sign, an exponent, and a fraction that stores decimal values approximately.1.1 · Computers
flowchartA drawing that shows the steps of an algorithm with symbols and arrows.1.4 · Flowcharts
for loopA counting loop that puts the initialization, condition, and update on a single line.3.1 · Control Structures
for-each loopA loop that gives each element of an array or collection in turn.3.3 · Arrays
foreign keyA column that refers to the primary key of another table.11 · Database Programming
format specifierA pattern such as %d or %.2f that tells printf how to write a value.3.4 · Strings
forwardingIn composition, passing an incoming call on to a method of the inner object.4.3 · Inheritance
fragile base classThe problem that a change in the implementation of a superclass can break its subclasses.4.3 · Inheritance
functionA named piece of code that takes input, processes it, and returns a result; written as a method in Java.3.2 · Methods
functional interfaceAn interface with a single abstract method that can be the target of a lambda expression.4.5 · Abstract Classes and Interfaces
garbage collectorThe JVM component that reclaims the memory of objects that no reference points to.7 · Testing and Debugging
general-purpose / domain-specific languageA language that supports a wide variety of applications versus one that focuses on a particular kind of application and makes the operations of that kind easy.2.1 · Programming
genericsWriting classes and methods with a type parameter (List<String>).5 · Collections
graphical user interface (GUI)An interface that provides visual interaction through elements such as windows, buttons, and menus.9 · Graphics and User Interfaces
greatest common divisor (GCD)The largest positive integer that divides both numbers exactly.1.2 · Computation and Computational Thinking
halting problemThe question of whether a given program will ever halt on a given input; Turing proved that no algorithm can answer it correctly for every program.1.2 · Computation and Computational Thinking
happens-beforeA transitive relation guaranteeing that if operation A happens-before B, everything A wrote is visible in B.10 · Threads
hash codeThe integer that the hashCode() method produces for an object; equal objects must have the same one.4.3 · Inheritance
hashing / hash tablePlacing an element in the bucket computed from its hash code to get O(1) access on average.5 · Collections
heap (memory)The memory region where objects and arrays are kept and which the garbage collector manages.4.1 · Objects and Classes
hexadecimalThe base-16 number system; it uses the digits 0-9 and A-F.1.1 · Computers
high-level / low-level languageA language that hides hardware detail (Java, Python) versus a language close to the hardware in which each line corresponds to one or a few processor instructions (machine language, assembly).2.1 · Programming
IDE (integrated development environment)An environment that combines JDK tools such as javac and java with an editor.2.2 · Syntax Rules
identifierThe name given to an element such as a variable, method, or class.2.2 · Syntax Rules
if statementA decision statement that runs a block if the condition is true.3.1 · Control Structures
immutableDescribes an object whose state does not change after it is created (like String).3.4 · Strings
implement (an interface)A class writing the bodies of the abstract methods of an interface.4.5 · Abstract Classes and Interfaces
implementationThe concrete code that shows how a class or method does its job; the internal structure behind the interface.4.2 · Encapsulation
implicit conversionA type conversion that Java performs automatically without the programmer asking; the opposite of an explicit conversion (cast).2.2 · Syntax Rules
importA declaration that lets you use a class from another package by its short name.4.2 · Encapsulation
increment / decrementThe ++ operator that increases a variable by 1 or the -- operator that decreases it by 1.2.2 · Syntax Rules
indexThe position number in an array, string, or list; it starts at 0.3.3 · Arrays
indexingAccessing an element by its position number, which starts at 0.3.4 · Strings
infinite loopA loop that never ends because its condition never becomes false.1.2 · Computation and Computational Thinking
information hidingThe principle of hiding the internal structure of a class from its users.4.2 · Encapsulation
inheritanceA class taking over the fields and methods of another class and extending them.4.3 · Inheritance
initializationGiving a variable or array its first value.2.2 · Syntax Rules
initializer blockA block that runs when the class is loaded (static) or before the constructor for each object.4.1 · Objects and Classes
inner classA class defined inside another class.4.1 · Objects and Classes
input / outputThe data given to a program and the results it produces.1.2 · Computation and Computational Thinking
instanceA particular object created from a class; instance members are separate in each object.4.1 · Objects and Classes
integerA number with no fractional part; in Java: byte, short, int, long.2.2 · Syntax Rules
integer divisionDropping the fractional part when dividing two integers (7 / 2 = 3).2.2 · Syntax Rules
integration testA test that exercises components working together with their real dependencies.7 · Testing and Debugging
interfaceA type that specifies the methods classes must implement; implemented with implements.4.5 · Abstract Classes and Interfaces
interface vs. implementationThe public face a class offers to the outside versus its internal mechanism.4.2 · Encapsulation
interpreterA program that reads a program line by line and runs it on the spot.2.1 · Programming
is-a / has-a relationshipThe inheritance relationship (is a kind of) versus the composition relationship (has a).4.3 · Inheritance
iteratorAn object that gives the elements of a collection in turn and allows removal while traversing.5 · Collections
Java Development Kit (JDK)The Java development package that contains the compiler (javac), the JVM, and tools.2.2 · Syntax Rules
Java Virtual Machine (JVM)The virtual machine that interprets bytecode and translates it to machine code with the JIT compiler.2.2 · Syntax Rules
JDBC (Java Database Connectivity)Java's standard API for connecting to databases (java.sql); the code that talks to a specific database is supplied by that database's JDBC driver.11 · Database Programming
JDBC driverThe library that lets Java talk to a specific database (the sqlite-jdbc jar for SQLite).11 · Database Programming
JIT (just-in-time) compilerThe JVM component that translates frequently executed bytecode into machine code at run time.2.2 · Syntax Rules
joinThe SQL operation that matches the rows of two tables according to an ON condition.11 · Database Programming
keywordA word reserved by the language that cannot be used as an identifier (class, if, static, and so on).2.2 · Syntax Rules
lambda expressionAn anonymous function made of a parameter list, an arrow, and a body: (a, b) -> a + b.4.5 · Abstract Classes and Interfaces
layout managerAn object that determines how components are arranged in a container.9 · Graphics and User Interfaces
lazy evaluationStream intermediate operations processing no elements and only recording a recipe; elements are processed when a terminal operation is called.5 · Collections
lexicographic orderAn ordering that compares strings from the start and sorts by the Unicode value of the first differing character (compareTo).3.4 · Strings
linear searchSearching by comparing the elements one by one from start to end; O(n).1.3 · Algorithms
linked listA list in which each element holds a link to the next one (LinkedList).5 · Collections
Liskov substitution principleThe principle that code written for a superclass must also work correctly with a subclass object.4.3 · Inheritance
listAn ordered, indexed collection that allows duplicates.5 · Collections
literalA value written directly in the source code (42, 3.14, 'a', "text").2.2 · Syntax Rules
local variableA variable defined inside a method or block and valid only there.3.2 · Methods
localeThe rules for case, number, and date formats that depend on language and region.3.4 · Strings
lockAn object that gives a single thread access to a resource (ReentrantLock).10 · Threads
logic errorAn error in which the program runs but produces a wrong result.6 · Exceptions
logical operatorThe &&, ||, and ! operators, which combine logical values.2.2 · Syntax Rules
loopA structure that repeats a group of statements as long as a condition holds.3.1 · Control Structures
loose couplingComponents depending on each other's interface rather than on each other's implementation.4.5 · Abstract Classes and Interfaces
lost updateThe loss of one of two increments when two threads read the same old value and write over it.10 · Threads
machine languageThe instructions the processor runs directly, binary-encoded and specific to a processor family; also called machine code.2.1 · Programming
magic numberThe leading bytes that identify the type of a file; every .class file starts with CA FE BA BE.8 · Input and Output
main threadThe thread the JVM starts to run the main() method.10 · Threads
mapA structure that holds key-value pairs in which each key is unique.5 · Collections
marker interfaceAn interface with no methods whose only job is to mark a class (Serializable).8 · Input and Output
memberThe fields, methods, constructors, and inner classes of a class.4.1 · Objects and Classes
memoizationStoring computed results to avoid computing them again.3.5 · Recursion
memory hierarchyThe layers of memory from fast and small (registers) to slow and large (disk).1.1 · Computers
memory leakMemory that is not freed because references to objects that are no longer needed remain.7 · Testing and Debugging
methodA block of code that belongs to a class and is called by its name and parameters.3.2 · Methods
method callRunning a method with arguments.3.2 · Methods
method overloadingDefining several methods with the same name but different parameter lists.3.2 · Methods
method overridingA subclass rewriting an inherited method with the same signature.4.3 · Inheritance
method signatureThe name of a method and the sequence of its parameter types; the return type is not included.3.2 · Methods
Model–View–Controller (MVC)A design that divides an application into data (model), presentation (view), and flow (controller) layers.4.5 · Abstract Classes and Interfaces
monitorThe lock and waiting mechanism attached to every object, acquired with synchronized.10 · Threads
multiple inheritanceA class having more than one superclass; Java does not allow it for classes.4.3 · Inheritance
multithreadingA program running with several threads.10 · Threads
mutator (setter)A set method that assigns a value to a field after validating it.4.2 · Encapsulation
mutual exclusionOnly one thread being in the critical section at a time.10 · Threads
named constant (final)A variable defined with final whose value is given once.2.2 · Syntax Rules
naming conventionNaming habits such as camelCase, PascalCase, and UPPER_CASE.2.2 · Syntax Rules
natural ordering (Comparable)The default ordering that a class defines with compareTo.5 · Collections
nested decisionA decision structure inside another decision structure.3.1 · Control Structures
nested loopA loop inside the body of another loop.3.1 · Control Structures
normalizationSplitting data into tables so that each fact is stored in only one place, to avoid repetition.11 · Database Programming
null referenceA reference value that points to no object.4.1 · Objects and Classes
numeric promotionConverting the operands of an operation to a common type; if one is double, the other is promoted to double.2.2 · Syntax Rules
objectAn entity created from a class that has its own state.4.1 · Objects and Classes
Object classThe direct or indirect superclass of all classes in Java.4.3 · Inheritance
object-oriented programming (OOP)An approach that builds a program around objects that combine state and behavior.4.1 · Objects and Classes
observer patternA pattern that sets up a one-to-many relationship between a subject object and the observers registered with it and notifies all observers when the subject's state changes.4.5 · Abstract Classes and Interfaces
off-by-one errorLooping one time too few or one time too many because the boundary condition of the loop was written incorrectly.1.4 · Flowcharts
one-to-many / many-to-many relationshipA relationship in which one record matches several records in the other table (one department, many students) versus one in which many records match in both directions and which needs a junction table.11 · Database Programming
opcodeThe code in a machine-language instruction that specifies which operation it performs.1.1 · Computers
open/closed principleA software unit should be open for extension but closed for modification: new behavior is added by writing new code, not by changing existing code.4.4 · Polymorphism
operandA value that an operator works on.2.1 · Programming
operatorA symbol that performs an operation on operands (+, *, ==, &&).2.2 · Syntax Rules
operator precedenceThe rule that determines the order in which operators are applied in an expression.2.2 · Syntax Rules
overflowA result that does not fit in the range of the type; in Java, integers silently wrap around.2.2 · Syntax Rules
packageA namespace that groups related classes and prevents name clashes.4.2 · Encapsulation
package-private accessThe access level in effect when no access modifier is written, in which only classes in the same package can reach the member.4.2 · Encapsulation
parameterThe variable in a method definition that represents an input.3.2 · Methods
pass by valueIn Java, giving a copy of the argument to the parameter (references are copied too).3.2 · Methods
path coverageIn testing, running every outcome of the decision boxes at least once.1.4 · Flowcharts
pattern matching (instanceof)A syntax that, when an instanceof test succeeds, binds the cast value directly to a new variable (Java 16).4.4 · Polymorphism
pattern recognitionSpotting similarities among subproblems or with other known problems and applying a single solution to all of them.1.2 · Computation and Computational Thinking
pipelineAn arrangement that overlaps instructions: while one is executed, the next is decoded and the one after is fetched.1.1 · Computers
platform independenceThe same bytecode running on every operating system that has a JVM.2.2 · Syntax Rules
polymorphismThe same call behaving differently according to the actual class of the object.4.4 · Polymorphism
positional valueThe value a digit gets from its position in the number; it is multiplied by a power of the base.1.1 · Computers
precondition / postconditionConditions that must hold before a method is called and that are guaranteed when it finishes.4.2 · Encapsulation
prepared statementA SQL statement whose parameters are supplied separately with ?, which prevents injection.11 · Database Programming
primary keyA column that uniquely identifies each row of a table.11 · Database Programming
primitive typeThe eight basic types that hold their value directly: byte, short, int, long, float, double, char, boolean.2.2 · Syntax Rules
priority queueA queue that gives the element with the highest priority first.5 · Collections
procedural abstractionAn abstraction that emphasizes what a function computes rather than how; the user knows only the method's signature and purpose.3.2 · Methods
procedural programmingAn approach that builds a program as a sequence of procedures operating on data.4.1 · Objects and Classes
processA running program that has its own memory space.10 · Threads
producer–consumer problemThe coordination of threads that produce into and consume from a shared buffer.10 · Threads
profilerA tool that measures where a program spends its time and memory.7 · Testing and Debugging
program counter (PC)The register that holds the address of the next instruction.1.1 · Computers
programming languageAn artificial language designed to tell a computer precisely how to carry out computations.2.1 · Programming
programming paradigmA general approach to writing programs: imperative, functional, logic, or object-oriented.2.1 · Programming
property-based testingTesting that checks with random inputs that a property always holds.7 · Testing and Debugging
pseudocodeA way of writing an algorithm in semi-natural language without tying it to a particular language.1.3 · Algorithms
queryA SQL command that requests data from the database (SELECT).11 · Database Programming
queueA structure that works on the first-in, first-out (FIFO) principle.5 · Collections
race conditionAn outcome that depends on the order in which threads run.10 · Threads
ragged arrayA multidimensional array whose rows have different lengths.3.3 · Arrays
RAM (random-access memory)The main memory that holds the running program and its data and is erased when the power goes off.1.1 · Computers
random access fileA file that can be read and written by moving the pointer to the desired position.8 · Input and Output
recordAn immutable class that only carries data and whose fields are final (Java 16+).4.1 · Objects and Classes
recurrence relationA rule that computes each term of a series from the previous terms; the starting values become the base case and the relation becomes the recursive step.3.5 · Recursion
recursionA method calling itself with a smaller input.3.5 · Recursion
red-black treeThe tree structure TreeSet uses internally to keep its elements sorted.5 · Collections
reentrant lockA lock that lets the thread holding it acquire the same lock again without waiting; it keeps a hold count.10 · Threads
refactoringCleaning up code (removing duplication, fixing names) while the tests stay green; the last step of the TDD cycle.7 · Testing and Debugging
referenceA value that points to the location of an object on the heap.4.1 · Objects and Classes
reference typeA type whose variables hold a reference to an object rather than the object itself (classes, arrays, interfaces).2.2 · Syntax Rules
reflectionA program inspecting and using its own classes, methods, and fields while it runs.4.5 · Abstract Classes and Interfaces
registerA very small but very fast storage area inside the processor for temporary data.1.1 · Computers
regression testRerunning the old tests after a change.7 · Testing and Debugging
regular expressionA pattern language used in text searching; the parameter of split is a regular expression (" +" means one or more spaces).3.4 · Strings
relational modelA model that stores data in tables made of rows and columns.11 · Database Programming
result setAn object that lets you read the rows returned by a query one by one.11 · Database Programming
return typeThe type of the value a method returns; void if it returns nothing.3.2 · Methods
return valueThe value a method gives back to its caller with return.3.2 · Methods
runtime errorAn error that appears while the program runs and leads to an exception.6 · Exceptions
schedulerThe JVM and operating-system component that decides which thread runs when and on which core; the programmer cannot control this order.10 · Threads
scopeThe region of a program in which a name is valid.3.2 · Methods
sealed class / interfaceA type that restricts, with permits, which subtypes may extend it (Java 17+).4.5 · Abstract Classes and Interfaces
selection sortA sorting method that finds the smallest of the remaining part in each pass and moves it to the front.3.3 · Arrays
selector (NIO)An NIO object that monitors several channels with a single thread.8 · Input and Output
semanticsWhat a program with correct syntax does.2.1 · Programming
semaphoreA counter that lets at most n threads access a resource at the same time.10 · Threads
sentinel valueA special value that signals the end of input and is not counted as data.1.4 · Flowcharts
sequential flowThe steps running once each in the order in which they are written.1.4 · Flowcharts
serializationConverting an object into a byte sequence to store it and reading it back.8 · Input and Output
setA collection that does not allow duplicate elements.5 · Collections
shadowingA name in an inner scope hiding the same name in an outer scope.4.2 · Encapsulation
short-circuit evaluationNot evaluating the right-hand side of && and || once the result is known.2.2 · Syntax Rules
shuffleRandomly changing the order of elements (Fisher-Yates).5 · Collections
source codeThe program text the programmer writes, before compilation (.java).2.2 · Syntax Rules
specializationAnother name for inheritance: the subclass represents a more specific group within the group represented by the superclass.4.3 · Inheritance
spurious wakeupA thread in wait waking up without any notify; for this reason the condition is checked with while, not if.10 · Threads
SQL injectionAn attack in which user input gets mixed into a SQL command and changes it.11 · Database Programming
stable sortA sort that preserves the relative order of elements considered equal (TimSort, used by Collections.sort).5 · Collections
stackA structure that works on the last-in, first-out (LIFO) principle.5 · Collections
stack (memory)The memory region that holds method frames and local variables.4.1 · Objects and Classes
stack frameThe stack record that holds the parameters and local variables of a method call.3.5 · Recursion
stack overflowThe call stack filling up in very deep or infinite recursion (StackOverflowError).3.5 · Recursion
stack traceThe output that shows the type and message of an exception and the chain of calls.6 · Exceptions
stack unwindingMoving up the call stack while looking for a suitable catch and discarding the frames along the way.6 · Exceptions
standard input / outputThe program's keyboard (System.in) and screen (System.out) streams.8 · Input and Output
statementA program unit that has an effect; in Java it usually ends with a semicolon.2.1 · Programming
static / dynamic typingChecking types at compile time (Java) or at run time.2.1 · Programming
static analysisAn examination that searches for bug patterns without running the code (SpotBugs).7 · Testing and Debugging
static memberA field or method that belongs to the class rather than to an object and has a single copy.4.1 · Objects and Classes
static semanticsThe meaning rules of syntactically correct code that are checked at compile time (such as type compatibility).2.1 · Programming
stored-program computerA computer that stores the program in memory just like data.1.1 · Computers
strategy patternA pattern that puts interchangeable algorithms behind a common interface; when the strategy changes, the behavior changes without changing the code that uses it.4.5 · Abstract Classes and Interfaces
stream (I/O)A sequence of bytes or characters flowing in order from a source to a destination.8 · Input and Output
stringAn object that stores a sequence of characters; String in Java.3.4 · Strings
string concatenationJoining strings end to end with +; if one operand is a string, the result is a string.3.4 · Strings
string literalA string written in quotes in the source code; it is stored as a single object in the pool.3.4 · Strings
string poolThe special region where string literals with the same content share a single object.3.4 · Strings
structured flowchartA flowchart in which every control structure has a single entry and a single exit.1.4 · Flowcharts
subprogram (predefined process)A sequence of steps drawn separately and called from the main diagram; a method in Java.1.4 · Flowcharts
substringA part of a string made of consecutive characters; s.substring(a, b) gives the characters from index a to index b - 1.3.4 · Strings
super keywordThe keyword used to access the superclass's constructor or members.4.3 · Inheritance
superclass / subclassThe class that is extended and the class that extends it in inheritance.4.3 · Inheritance
surrogate pairTwo 16-bit units in UTF-16 that represent a code point greater than 0xFFFF.1.1 · Computers
switch expressionThe form of switch, introduced in Java 14, that produces a value and uses an arrow (->).3.1 · Control Structures
switch statementA statement that compares a value with case labels and jumps to the matching branch.3.1 · Control Structures
synchronizationCoordinating the access of threads to shared data.10 · Threads
syntaxThe rules for the form of valid program texts in a language.2.1 · Programming
syntax errorAn error that violates the form rules of the language and is caught at compile time.2.1 · Programming
tail recursionRecursion in which the recursive call is the last thing the method does.3.5 · Recursion
template methodA design that defines the skeleton of an algorithm in a superclass and the varying steps in subclasses.4.5 · Abstract Classes and Interfaces
test caseWriting down, independently of the program and in advance, the expected output for a given input.1.3 · Algorithms
test doubleA simple object that stands in for an external dependency in a unit test by imitating it.7 · Testing and Debugging
test-driven development (TDD)A method of writing the test first and then the code that makes it pass.7 · Testing and Debugging
text file / binary fileA file whose bytes are read as characters versus a file that holds raw data.8 · Input and Output
this keywordA reference to the object that called the method.4.1 · Objects and Classes
threadAn independently progressing flow of execution inside a program.10 · Threads
thread poolA structure that distributes tasks to threads that are waiting ready (ExecutorService).10 · Threads
thread safetyThe ability of a class to be used correctly from several threads at the same time.10 · Threads
thread statesNEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, TERMINATED.10 · Threads
throw / catchCreating and sending an exception, and handling it in a catch block.6 · Exceptions
time complexity (Big-O)A measure of how the running time grows with the input size.3.3 · Arrays
trace tableA table that shows the values of the variables at each step of the code.1.3 · Algorithms
transactionA group of SQL statements executed on an all-or-nothing basis.11 · Database Programming
tree recursionRecursion in which a method calls itself several times and the calls form a tree (Fibonacci).3.5 · Recursion
try-catch blockA structure that puts code that may raise an exception in try and the code that handles it in catch.6 · Exceptions
try-with-resourcesA form of try that automatically closes opened resources when the block ends.6 · Exceptions
Turing completeA programming language or system that can perform every computation a Turing machine can.1.2 · Computation and Computational Thinking
Turing machineAn abstract model of computation made of a tape, a read-write head, and a state table.1.2 · Computation and Computational Thinking
two's complementRepresenting a negative integer by inverting the bits of its positive counterpart and adding 1.1.1 · Computers
two-dimensional arrayA structure made of rows and columns that is an array of arrays.3.3 · Arrays
typeAn attribute that determines which values a value can take and which operations it allows.2.1 · Programming
type conversionConverting a value to another type; widening is automatic and narrowing is explicit.2.2 · Syntax Rules
type erasureRemoving generic type arguments from the bytecode after they have been checked at compile time.4.5 · Abstract Classes and Interfaces
type safetyCatching values of the wrong type at compile time.5 · Collections
unchecked exceptionAn exception derived from RuntimeException that the compiler does not check.6 · Exceptions
UnicodeThe standard that assigns a number to the characters of all the world's writing systems.1.1 · Computers
unit testAn automated test that exercises a single method or class on its own.7 · Testing and Debugging
universal Turing machineAn abstract Turing machine that takes the description and input of another Turing machine and simulates it.1.2 · Computation and Computational Thinking
upcasting / downcastingConverting a subclass reference to a superclass type (automatic) or the reverse (with a cast).4.4 · Polymorphism
UTF-8An encoding that writes Unicode code points with 1-4 bytes and is compatible with ASCII.1.1 · Computers
variableA memory area bound to a name whose value can change.2.2 · Syntax Rules
virtual method tableThe table, one per class, of method bodies that the JVM uses for dynamic binding.4.4 · Polymorphism
virtual threadA thread managed by the JVM rather than the operating system, of which millions can be created (Java 21); suited to many short tasks that mostly wait.10 · Threads
von Neumann architectureThe CPU-memory-I/O organization in which instructions and data are kept in the same memory.1.1 · Computers
while loopA loop that tests the condition before each iteration.3.1 · Control Structures
widening / narrowing conversionA conversion from a smaller type to a larger one (automatic) or from a larger to a smaller one (a cast is needed).2.2 · Syntax Rules
widening conversionThe automatic conversion of a smaller numeric type to a larger one (int to double).2.1 · Programming
wildcardThe ? symbol in a generic type argument that stands for an unknown type.4.5 · Abstract Classes and Interfaces
wrapper classA class that carries a primitive type as an object (Integer, Double, and so on).4.1 · Objects and Classes

Course page: Object-Oriented Programming with Java · © Sercan Külcü. All rights reserved.