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.
| Term | Definition | Chapter |
|---|---|---|
| abstract class | A class declared with abstract that cannot be instantiated and may contain abstract methods. | 4.5 · Abstract Classes and Interfaces |
| abstract method | A method with no body that a subclass must implement. | 4.5 · Abstract Classes and Interfaces |
| abstraction | Hiding the details and showing only the essential features. | 3.2 · Methods |
| acceptance testing | Testing that runs the system with users on real data to decide whether the customer will accept it. | 7 · Testing and Debugging |
| access modifier | A 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 |
| accumulator | A variable that adds a value on each pass of a loop to build up a result (a running total). | 1.4 · Flowcharts |
| ACID | The four properties of a transaction: atomicity, consistency, isolation, and durability. | 11 · Database Programming |
| adapter class | A 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 function | A function such as COUNT, SUM, AVG, MIN, or MAX that produces a single value from a set of rows. | 11 · Database Programming |
| algorithm | A method that solves a problem in a finite number of precise steps. | 1.3 · Algorithms |
| alias | Either of two reference variables that refer to the same object. | 3.3 · Arrays |
| amortized cost | The average cost of occasionally expensive operations over a long sequence of calls; appending to an ArrayList takes constant time on average. | 5 · Collections |
| annotation | A note that starts with @ (such as @Override), is attached to code, and gives information to the compiler. | 4.3 · Inheritance |
| anonymous class | An inner class with no name whose single object is created at the point where it is defined. | 4.1 · Objects and Classes |
| argument | The actual value passed to a parameter when a method is called. | 3.2 · Methods |
| array | A structure that holds a fixed number of elements of the same type in consecutive cells. | 3.3 · Arrays |
| array initializer | The starting values given inside braces: int[] a = {1, 2, 3}. | 3.3 · Arrays |
| ASCII | A 7-bit character encoding for the English alphabet, digits, and control characters. | 1.1 · Computers |
| assembly language | A low-level language that writes machine instructions using mnemonics. | 1.1 · Computers |
| assertion | A statement that compares an expected result with the actual one or checks an assumption. | 7 · Testing and Debugging |
| assignment | Storing the value of the expression on the right in the variable on the left (=). | 2.2 · Syntax Rules |
| associativity | The rule that decides whether operators of equal precedence are applied left to right or right to left. | 2.2 · Syntax Rules |
| atomic operation | An operation that completes in a single indivisible step (AtomicInteger). | 10 · Threads |
| auto-commit | The default mode of a JDBC connection: each statement is its own transaction and becomes permanent as soon as it runs. | 11 · Database Programming |
| autoboxing / unboxing | The 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 case | The smallest case, solved directly, that stops the recursion. | 3.5 · Recursion |
| batch update | Collecting many statements with addBatch and sending them together with executeBatch. | 11 · Database Programming |
| binary heap | A 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 system | The base-2 number system, which uses only the digits 0 and 1. | 1.1 · Computers |
| binary search | Searching a sorted array by halving the range at each step; O(log n). | 1.3 · Algorithms |
| bit | A single digit of the binary system: 0 or 1. | 1.1 · Computers |
| black-box / white-box testing | Testing 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 |
| block | A group of statements between curly braces. | 2.2 · Syntax Rules |
| boolean | A type whose only values are true and false. | 2.2 · Syntax Rules |
| boundary value analysis | Choosing the edge values of each equivalence class and the first values of the invalid region as test inputs. | 7 · Testing and Debugging |
| bounded type parameter | A type parameter restricted by an upper bound, as in <T extends Base>. | 4.5 · Abstract Classes and Interfaces |
| break / continue | Statements that exit a loop or skip the rest of the current iteration. | 3.1 · Control Structures |
| breakpoint | A line at which the debugger stops the program. | 7 · Testing and Debugging |
| bubble sort | A sorting method that compares neighboring elements and swaps them, moving the largest to the end. | 1.3 · Algorithms |
| buffer / buffering | Accumulating data in memory and reading or writing it in bulk to reduce disk accesses. | 8 · Input and Output |
| bus | The shared communication line that connects the processor to memory and to input/output devices. | 1.1 · Computers |
| busy waiting | Waiting for a condition by testing it continuously in a loop; it keeps a core busy for nothing. | 10 · Threads |
| byte | A data unit of 8 bits; Java also has a type named byte. | 1.1 · Computers |
| byte stream / character stream | The InputStream/OutputStream and Reader/Writer class families. | 8 · Input and Output |
| bytecode | The platform-independent instructions (.class) that javac produces and the JVM runs. | 2.2 · Syntax Rules |
| cache | A small, fast memory between the processor and main memory that holds frequently used data. | 1.1 · Computers |
| call stack | The stack that holds the frames of the running methods. | 3.2 · Methods |
| capacity | The total number of cells in the internal array of a dynamic array; not the same as size(), which counts the filled cells. | 5 · Collections |
| carry | The 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 encoding | The rule that determines which byte sequences are used to store characters. | 8 · Input and Output |
| checked exception | An exception that the compiler requires you to catch or declare. | 6 · Exceptions |
| class | A blueprint that defines the fields and methods of objects. | 4.1 · Objects and Classes |
| class invariant | A rule that the state of an object must always satisfy. | 4.2 · Encapsulation |
| classpath | The 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 coverage | The proportion of code lines that the tests execute. | 7 · Testing and Debugging |
| code point | The number Unicode assigns to a character; written in hexadecimal with the U+ prefix. | 1.1 · Computers |
| collection | A data structure that holds multiple objects together. | 5 · Collections |
| Collections Framework | Java's collection library of interfaces, classes, and algorithms. | 5 · Collections |
| collision | Two different elements falling into the same bucket of a hash table; colliding elements form a chain in the bucket. | 5 · Collections |
| comment | A note for the reader that the compiler ignores (//, /* */). | 2.2 · Syntax Rules |
| comparator | An 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 operator | An operator such as ==, !=, <, or > that compares two values and produces a boolean. | 2.2 · Syntax Rules |
| compile time / run time | The moment the code is compiled versus the period during which the program runs. | 4.4 · Polymorphism |
| compiler | A program that translates source code entirely into another language (in Java, into bytecode). | 2.1 · Programming |
| component | A visual element placed in a window (JButton, JLabel, and so on). | 9 · Graphics and User Interfaces |
| composition | A class holding a field of another class type (has-a). | 4.3 · Inheritance |
| compound assignment | An operator that combines an operation and an assignment (+=, *=). | 2.2 · Syntax Rules |
| computability | The question of whether a problem can be solved by any algorithm at all. | 1.2 · Computation and Computational Thinking |
| computation | The process of producing the output of a problem from its input step by step. | 1.2 · Computation and Computational Thinking |
| computational thinking | The skill of breaking a problem into parts, finding patterns, abstracting, and designing an algorithm. | 1.2 · Computation and Computational Thinking |
| concrete class | A class with all of its methods implemented that can be instantiated. | 4.5 · Abstract Classes and Interfaces |
| concurrency / parallelism | Tasks making progress in an interleaved way over time versus actually running at the same instant. | 10 · Threads |
| condition | A logical expression whose result is true or false. | 3.1 · Control Structures |
| conditional (ternary) operator | An expression of the form condition ? a : b that selects one of two values. | 2.2 · Syntax Rules |
| conditional flow | Choosing one of several paths according to the result of a condition. | 1.4 · Flowcharts |
| constructor | A 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 chaining | A constructor calling another constructor with this(...) or super(...). | 4.3 · Inheritance |
| container | A component that contains other components (JFrame, JPanel). | 9 · Graphics and User Interfaces |
| content pane | The inner area of a window below the title bar; components added with add are placed here. | 9 · Graphics and User Interfaces |
| context switching | The 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 structure | A structure that determines the order in which statements run and how many times. | 3.1 · Control Structures |
| control unit | The 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 type | An 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 section | A piece of code that accesses shared data and that only one thread may execute at a time. | 10 · Threads |
| custom exception | An application-specific exception derived from Exception or RuntimeException. | 6 · Exceptions |
| daemon thread | A 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 hiding | Making fields private and allowing access only through methods. | 4.2 · Encapsulation |
| data type | The type of the data a variable stores (int, double, String, and so on). | 2.2 · Syntax Rules |
| database | A system that stores data in an organized, persistent, and queryable way. | 11 · Database Programming |
| database index | An extra structure that keeps the values of a column in order to speed up searching. | 11 · Database Programming |
| deadlock | Threads waiting forever for locks held by one another. | 10 · Threads |
| debugger | A tool that runs a program step by step and lets you watch its variables. | 7 · Testing and Debugging |
| debugging | The process of finding the cause of a bug and fixing it. | 7 · Testing and Debugging |
| declaration | Introducing the type and name of a variable to the compiler. | 2.2 · Syntax Rules |
| declarative / imperative knowledge | Knowledge that states what something is versus knowledge that states how to do something. | 1.2 · Computation and Computational Thinking |
| declared type / actual type | The type of a reference variable versus the class of the object it refers to. | 4.4 · Polymorphism |
| decomposition | Splitting 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 constructor | The no-argument constructor that the compiler adds if no constructor is written. | 4.1 · Objects and Classes |
| default method | A method written with a body in an interface that implementing classes get ready-made (Java 8+). | 4.5 · Abstract Classes and Interfaces |
| default value | The value that fields and array elements receive if none is given (0, false, null). | 2.2 · Syntax Rules |
| defect / failure | The 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 copy | Copying a mutable object when it enters and when it leaves a class. | 4.2 · Encapsulation |
| dependency injection | An 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 pattern | A tested, reusable solution pattern for a commonly occurring design problem. | 4.5 · Abstract Classes and Interfaces |
| desk check | Tracing a diagram or code on paper with a sample input, without a computer. | 1.4 · Flowcharts |
| diamond problem | The 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 loop | A loop that runs its body at least once and tests the condition after each iteration. | 3.1 · Control Structures |
| dot operator | The . operator used to access a member of an object or a class. | 4.1 · Objects and Classes |
| doubly linked list | A list in which each node holds a value and references to the previous and next nodes (LinkedList). | 5 · Collections |
| dynamic array | An array that grows by copying into a larger array when it becomes full (ArrayList). | 5 · Collections |
| dynamic binding | Selecting the version of a method to call at run time according to the class of the object. | 4.4 · Polymorphism |
| edge case | A 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 final | A local variable that is not declared final but is never changed after it is assigned. | 4.5 · Abstract Classes and Interfaces |
| element | A single value of an array, string, or collection. | 3.3 · Arrays |
| else-if chain | A structure that tries conditions in order and runs the block of the first true one. | 3.1 · Control Structures |
| encapsulation | Gathering data and the methods that work on it in one class and hiding the internal details. | 4.2 · Encapsulation |
| enum | A type that defines a fixed set of values. | 4.1 · Objects and Classes |
| equivalence class | A 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 algorithm | An algorithm that finds the GCD using the relation GCD(a, b) = GCD(b, a mod b). | 1.2 · Computation and Computational Thinking |
| event | A 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 listener | An interface or object that defines the methods to be called when an event occurs. | 9 · Graphics and User Interfaces |
| event-driven programming | A 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 |
| exception | An event that disrupts the normal flow while the program runs and is thrown as an object. | 6 · Exceptions |
| exception propagation | The progress of an uncaught exception up the call stack toward the caller. | 6 · Exceptions |
| expression | A construct that produces a value when evaluated (3 + 4, x > 0). | 2.2 · Syntax Rules |
| factory method | A method that creates an object and returns it as a superclass or interface type. | 4.4 · Polymorphism |
| fall-through | Execution continuing into the following cases when a case has no break. | 3.1 · Control Structures |
| fetch–decode–execute cycle | The basic operating cycle that the CPU repeats for every instruction. | 1.1 · Computers |
| field | A variable defined in a class body outside the methods; it holds the state of the object. | 4.1 · Objects and Classes |
| field hiding | Redefining in a subclass a field with the same name as a superclass field; the object then holds two separate variables. | 4.3 · Inheritance |
| file pointer | A 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 block | A block that runs whether or not an exception occurs. | 6 · Exceptions |
| floating-point number | A number format made of a sign, an exponent, and a fraction that stores decimal values approximately. | 1.1 · Computers |
| flowchart | A drawing that shows the steps of an algorithm with symbols and arrows. | 1.4 · Flowcharts |
| for loop | A counting loop that puts the initialization, condition, and update on a single line. | 3.1 · Control Structures |
| for-each loop | A loop that gives each element of an array or collection in turn. | 3.3 · Arrays |
| foreign key | A column that refers to the primary key of another table. | 11 · Database Programming |
| format specifier | A pattern such as %d or %.2f that tells printf how to write a value. | 3.4 · Strings |
| forwarding | In composition, passing an incoming call on to a method of the inner object. | 4.3 · Inheritance |
| fragile base class | The problem that a change in the implementation of a superclass can break its subclasses. | 4.3 · Inheritance |
| function | A named piece of code that takes input, processes it, and returns a result; written as a method in Java. | 3.2 · Methods |
| functional interface | An interface with a single abstract method that can be the target of a lambda expression. | 4.5 · Abstract Classes and Interfaces |
| garbage collector | The JVM component that reclaims the memory of objects that no reference points to. | 7 · Testing and Debugging |
| general-purpose / domain-specific language | A 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 |
| generics | Writing 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 problem | The 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-before | A transitive relation guaranteeing that if operation A happens-before B, everything A wrote is visible in B. | 10 · Threads |
| hash code | The integer that the hashCode() method produces for an object; equal objects must have the same one. | 4.3 · Inheritance |
| hashing / hash table | Placing 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 |
| hexadecimal | The base-16 number system; it uses the digits 0-9 and A-F. | 1.1 · Computers |
| high-level / low-level language | A 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 |
| identifier | The name given to an element such as a variable, method, or class. | 2.2 · Syntax Rules |
| if statement | A decision statement that runs a block if the condition is true. | 3.1 · Control Structures |
| immutable | Describes 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 |
| implementation | The concrete code that shows how a class or method does its job; the internal structure behind the interface. | 4.2 · Encapsulation |
| implicit conversion | A type conversion that Java performs automatically without the programmer asking; the opposite of an explicit conversion (cast). | 2.2 · Syntax Rules |
| import | A declaration that lets you use a class from another package by its short name. | 4.2 · Encapsulation |
| increment / decrement | The ++ operator that increases a variable by 1 or the -- operator that decreases it by 1. | 2.2 · Syntax Rules |
| index | The position number in an array, string, or list; it starts at 0. | 3.3 · Arrays |
| indexing | Accessing an element by its position number, which starts at 0. | 3.4 · Strings |
| infinite loop | A loop that never ends because its condition never becomes false. | 1.2 · Computation and Computational Thinking |
| information hiding | The principle of hiding the internal structure of a class from its users. | 4.2 · Encapsulation |
| inheritance | A class taking over the fields and methods of another class and extending them. | 4.3 · Inheritance |
| initialization | Giving a variable or array its first value. | 2.2 · Syntax Rules |
| initializer block | A block that runs when the class is loaded (static) or before the constructor for each object. | 4.1 · Objects and Classes |
| inner class | A class defined inside another class. | 4.1 · Objects and Classes |
| input / output | The data given to a program and the results it produces. | 1.2 · Computation and Computational Thinking |
| instance | A particular object created from a class; instance members are separate in each object. | 4.1 · Objects and Classes |
| integer | A number with no fractional part; in Java: byte, short, int, long. | 2.2 · Syntax Rules |
| integer division | Dropping the fractional part when dividing two integers (7 / 2 = 3). | 2.2 · Syntax Rules |
| integration test | A test that exercises components working together with their real dependencies. | 7 · Testing and Debugging |
| interface | A type that specifies the methods classes must implement; implemented with implements. | 4.5 · Abstract Classes and Interfaces |
| interface vs. implementation | The public face a class offers to the outside versus its internal mechanism. | 4.2 · Encapsulation |
| interpreter | A program that reads a program line by line and runs it on the spot. | 2.1 · Programming |
| is-a / has-a relationship | The inheritance relationship (is a kind of) versus the composition relationship (has a). | 4.3 · Inheritance |
| iterator | An 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 driver | The library that lets Java talk to a specific database (the sqlite-jdbc jar for SQLite). | 11 · Database Programming |
| JIT (just-in-time) compiler | The JVM component that translates frequently executed bytecode into machine code at run time. | 2.2 · Syntax Rules |
| join | The SQL operation that matches the rows of two tables according to an ON condition. | 11 · Database Programming |
| keyword | A word reserved by the language that cannot be used as an identifier (class, if, static, and so on). | 2.2 · Syntax Rules |
| lambda expression | An anonymous function made of a parameter list, an arrow, and a body: (a, b) -> a + b. | 4.5 · Abstract Classes and Interfaces |
| layout manager | An object that determines how components are arranged in a container. | 9 · Graphics and User Interfaces |
| lazy evaluation | Stream intermediate operations processing no elements and only recording a recipe; elements are processed when a terminal operation is called. | 5 · Collections |
| lexicographic order | An ordering that compares strings from the start and sorts by the Unicode value of the first differing character (compareTo). | 3.4 · Strings |
| linear search | Searching by comparing the elements one by one from start to end; O(n). | 1.3 · Algorithms |
| linked list | A list in which each element holds a link to the next one (LinkedList). | 5 · Collections |
| Liskov substitution principle | The principle that code written for a superclass must also work correctly with a subclass object. | 4.3 · Inheritance |
| list | An ordered, indexed collection that allows duplicates. | 5 · Collections |
| literal | A value written directly in the source code (42, 3.14, 'a', "text"). | 2.2 · Syntax Rules |
| local variable | A variable defined inside a method or block and valid only there. | 3.2 · Methods |
| locale | The rules for case, number, and date formats that depend on language and region. | 3.4 · Strings |
| lock | An object that gives a single thread access to a resource (ReentrantLock). | 10 · Threads |
| logic error | An error in which the program runs but produces a wrong result. | 6 · Exceptions |
| logical operator | The &&, ||, and ! operators, which combine logical values. | 2.2 · Syntax Rules |
| loop | A structure that repeats a group of statements as long as a condition holds. | 3.1 · Control Structures |
| loose coupling | Components depending on each other's interface rather than on each other's implementation. | 4.5 · Abstract Classes and Interfaces |
| lost update | The loss of one of two increments when two threads read the same old value and write over it. | 10 · Threads |
| machine language | The instructions the processor runs directly, binary-encoded and specific to a processor family; also called machine code. | 2.1 · Programming |
| magic number | The leading bytes that identify the type of a file; every .class file starts with CA FE BA BE. | 8 · Input and Output |
| main thread | The thread the JVM starts to run the main() method. | 10 · Threads |
| map | A structure that holds key-value pairs in which each key is unique. | 5 · Collections |
| marker interface | An interface with no methods whose only job is to mark a class (Serializable). | 8 · Input and Output |
| member | The fields, methods, constructors, and inner classes of a class. | 4.1 · Objects and Classes |
| memoization | Storing computed results to avoid computing them again. | 3.5 · Recursion |
| memory hierarchy | The layers of memory from fast and small (registers) to slow and large (disk). | 1.1 · Computers |
| memory leak | Memory that is not freed because references to objects that are no longer needed remain. | 7 · Testing and Debugging |
| method | A block of code that belongs to a class and is called by its name and parameters. | 3.2 · Methods |
| method call | Running a method with arguments. | 3.2 · Methods |
| method overloading | Defining several methods with the same name but different parameter lists. | 3.2 · Methods |
| method overriding | A subclass rewriting an inherited method with the same signature. | 4.3 · Inheritance |
| method signature | The 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 |
| monitor | The lock and waiting mechanism attached to every object, acquired with synchronized. | 10 · Threads |
| multiple inheritance | A class having more than one superclass; Java does not allow it for classes. | 4.3 · Inheritance |
| multithreading | A 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 exclusion | Only 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 convention | Naming 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 decision | A decision structure inside another decision structure. | 3.1 · Control Structures |
| nested loop | A loop inside the body of another loop. | 3.1 · Control Structures |
| normalization | Splitting data into tables so that each fact is stored in only one place, to avoid repetition. | 11 · Database Programming |
| null reference | A reference value that points to no object. | 4.1 · Objects and Classes |
| numeric promotion | Converting the operands of an operation to a common type; if one is double, the other is promoted to double. | 2.2 · Syntax Rules |
| object | An entity created from a class that has its own state. | 4.1 · Objects and Classes |
| Object class | The 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 pattern | A 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 error | Looping 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 relationship | A 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 |
| opcode | The code in a machine-language instruction that specifies which operation it performs. | 1.1 · Computers |
| open/closed principle | A 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 |
| operand | A value that an operator works on. | 2.1 · Programming |
| operator | A symbol that performs an operation on operands (+, *, ==, &&). | 2.2 · Syntax Rules |
| operator precedence | The rule that determines the order in which operators are applied in an expression. | 2.2 · Syntax Rules |
| overflow | A result that does not fit in the range of the type; in Java, integers silently wrap around. | 2.2 · Syntax Rules |
| package | A namespace that groups related classes and prevents name clashes. | 4.2 · Encapsulation |
| package-private access | The 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 |
| parameter | The variable in a method definition that represents an input. | 3.2 · Methods |
| pass by value | In Java, giving a copy of the argument to the parameter (references are copied too). | 3.2 · Methods |
| path coverage | In 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 recognition | Spotting similarities among subproblems or with other known problems and applying a single solution to all of them. | 1.2 · Computation and Computational Thinking |
| pipeline | An arrangement that overlaps instructions: while one is executed, the next is decoded and the one after is fetched. | 1.1 · Computers |
| platform independence | The same bytecode running on every operating system that has a JVM. | 2.2 · Syntax Rules |
| polymorphism | The same call behaving differently according to the actual class of the object. | 4.4 · Polymorphism |
| positional value | The value a digit gets from its position in the number; it is multiplied by a power of the base. | 1.1 · Computers |
| precondition / postcondition | Conditions that must hold before a method is called and that are guaranteed when it finishes. | 4.2 · Encapsulation |
| prepared statement | A SQL statement whose parameters are supplied separately with ?, which prevents injection. | 11 · Database Programming |
| primary key | A column that uniquely identifies each row of a table. | 11 · Database Programming |
| primitive type | The eight basic types that hold their value directly: byte, short, int, long, float, double, char, boolean. | 2.2 · Syntax Rules |
| priority queue | A queue that gives the element with the highest priority first. | 5 · Collections |
| procedural abstraction | An abstraction that emphasizes what a function computes rather than how; the user knows only the method's signature and purpose. | 3.2 · Methods |
| procedural programming | An approach that builds a program as a sequence of procedures operating on data. | 4.1 · Objects and Classes |
| process | A running program that has its own memory space. | 10 · Threads |
| producer–consumer problem | The coordination of threads that produce into and consume from a shared buffer. | 10 · Threads |
| profiler | A 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 language | An artificial language designed to tell a computer precisely how to carry out computations. | 2.1 · Programming |
| programming paradigm | A general approach to writing programs: imperative, functional, logic, or object-oriented. | 2.1 · Programming |
| property-based testing | Testing that checks with random inputs that a property always holds. | 7 · Testing and Debugging |
| pseudocode | A way of writing an algorithm in semi-natural language without tying it to a particular language. | 1.3 · Algorithms |
| query | A SQL command that requests data from the database (SELECT). | 11 · Database Programming |
| queue | A structure that works on the first-in, first-out (FIFO) principle. | 5 · Collections |
| race condition | An outcome that depends on the order in which threads run. | 10 · Threads |
| ragged array | A 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 file | A file that can be read and written by moving the pointer to the desired position. | 8 · Input and Output |
| record | An immutable class that only carries data and whose fields are final (Java 16+). | 4.1 · Objects and Classes |
| recurrence relation | A 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 |
| recursion | A method calling itself with a smaller input. | 3.5 · Recursion |
| red-black tree | The tree structure TreeSet uses internally to keep its elements sorted. | 5 · Collections |
| reentrant lock | A lock that lets the thread holding it acquire the same lock again without waiting; it keeps a hold count. | 10 · Threads |
| refactoring | Cleaning up code (removing duplication, fixing names) while the tests stay green; the last step of the TDD cycle. | 7 · Testing and Debugging |
| reference | A value that points to the location of an object on the heap. | 4.1 · Objects and Classes |
| reference type | A type whose variables hold a reference to an object rather than the object itself (classes, arrays, interfaces). | 2.2 · Syntax Rules |
| reflection | A program inspecting and using its own classes, methods, and fields while it runs. | 4.5 · Abstract Classes and Interfaces |
| register | A very small but very fast storage area inside the processor for temporary data. | 1.1 · Computers |
| regression test | Rerunning the old tests after a change. | 7 · Testing and Debugging |
| regular expression | A pattern language used in text searching; the parameter of split is a regular expression (" +" means one or more spaces). | 3.4 · Strings |
| relational model | A model that stores data in tables made of rows and columns. | 11 · Database Programming |
| result set | An object that lets you read the rows returned by a query one by one. | 11 · Database Programming |
| return type | The type of the value a method returns; void if it returns nothing. | 3.2 · Methods |
| return value | The value a method gives back to its caller with return. | 3.2 · Methods |
| runtime error | An error that appears while the program runs and leads to an exception. | 6 · Exceptions |
| scheduler | The JVM and operating-system component that decides which thread runs when and on which core; the programmer cannot control this order. | 10 · Threads |
| scope | The region of a program in which a name is valid. | 3.2 · Methods |
| sealed class / interface | A type that restricts, with permits, which subtypes may extend it (Java 17+). | 4.5 · Abstract Classes and Interfaces |
| selection sort | A 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 |
| semantics | What a program with correct syntax does. | 2.1 · Programming |
| semaphore | A counter that lets at most n threads access a resource at the same time. | 10 · Threads |
| sentinel value | A special value that signals the end of input and is not counted as data. | 1.4 · Flowcharts |
| sequential flow | The steps running once each in the order in which they are written. | 1.4 · Flowcharts |
| serialization | Converting an object into a byte sequence to store it and reading it back. | 8 · Input and Output |
| set | A collection that does not allow duplicate elements. | 5 · Collections |
| shadowing | A name in an inner scope hiding the same name in an outer scope. | 4.2 · Encapsulation |
| short-circuit evaluation | Not evaluating the right-hand side of && and || once the result is known. | 2.2 · Syntax Rules |
| shuffle | Randomly changing the order of elements (Fisher-Yates). | 5 · Collections |
| source code | The program text the programmer writes, before compilation (.java). | 2.2 · Syntax Rules |
| specialization | Another name for inheritance: the subclass represents a more specific group within the group represented by the superclass. | 4.3 · Inheritance |
| spurious wakeup | A thread in wait waking up without any notify; for this reason the condition is checked with while, not if. | 10 · Threads |
| SQL injection | An attack in which user input gets mixed into a SQL command and changes it. | 11 · Database Programming |
| stable sort | A sort that preserves the relative order of elements considered equal (TimSort, used by Collections.sort). | 5 · Collections |
| stack | A 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 frame | The stack record that holds the parameters and local variables of a method call. | 3.5 · Recursion |
| stack overflow | The call stack filling up in very deep or infinite recursion (StackOverflowError). | 3.5 · Recursion |
| stack trace | The output that shows the type and message of an exception and the chain of calls. | 6 · Exceptions |
| stack unwinding | Moving up the call stack while looking for a suitable catch and discarding the frames along the way. | 6 · Exceptions |
| standard input / output | The program's keyboard (System.in) and screen (System.out) streams. | 8 · Input and Output |
| statement | A program unit that has an effect; in Java it usually ends with a semicolon. | 2.1 · Programming |
| static / dynamic typing | Checking types at compile time (Java) or at run time. | 2.1 · Programming |
| static analysis | An examination that searches for bug patterns without running the code (SpotBugs). | 7 · Testing and Debugging |
| static member | A field or method that belongs to the class rather than to an object and has a single copy. | 4.1 · Objects and Classes |
| static semantics | The meaning rules of syntactically correct code that are checked at compile time (such as type compatibility). | 2.1 · Programming |
| stored-program computer | A computer that stores the program in memory just like data. | 1.1 · Computers |
| strategy pattern | A 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 |
| string | An object that stores a sequence of characters; String in Java. | 3.4 · Strings |
| string concatenation | Joining strings end to end with +; if one operand is a string, the result is a string. | 3.4 · Strings |
| string literal | A string written in quotes in the source code; it is stored as a single object in the pool. | 3.4 · Strings |
| string pool | The special region where string literals with the same content share a single object. | 3.4 · Strings |
| structured flowchart | A 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 |
| substring | A 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 keyword | The keyword used to access the superclass's constructor or members. | 4.3 · Inheritance |
| superclass / subclass | The class that is extended and the class that extends it in inheritance. | 4.3 · Inheritance |
| surrogate pair | Two 16-bit units in UTF-16 that represent a code point greater than 0xFFFF. | 1.1 · Computers |
| switch expression | The form of switch, introduced in Java 14, that produces a value and uses an arrow (->). | 3.1 · Control Structures |
| switch statement | A statement that compares a value with case labels and jumps to the matching branch. | 3.1 · Control Structures |
| synchronization | Coordinating the access of threads to shared data. | 10 · Threads |
| syntax | The rules for the form of valid program texts in a language. | 2.1 · Programming |
| syntax error | An error that violates the form rules of the language and is caught at compile time. | 2.1 · Programming |
| tail recursion | Recursion in which the recursive call is the last thing the method does. | 3.5 · Recursion |
| template method | A design that defines the skeleton of an algorithm in a superclass and the varying steps in subclasses. | 4.5 · Abstract Classes and Interfaces |
| test case | Writing down, independently of the program and in advance, the expected output for a given input. | 1.3 · Algorithms |
| test double | A 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 file | A file whose bytes are read as characters versus a file that holds raw data. | 8 · Input and Output |
| this keyword | A reference to the object that called the method. | 4.1 · Objects and Classes |
| thread | An independently progressing flow of execution inside a program. | 10 · Threads |
| thread pool | A structure that distributes tasks to threads that are waiting ready (ExecutorService). | 10 · Threads |
| thread safety | The ability of a class to be used correctly from several threads at the same time. | 10 · Threads |
| thread states | NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, TERMINATED. | 10 · Threads |
| throw / catch | Creating 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 table | A table that shows the values of the variables at each step of the code. | 1.3 · Algorithms |
| transaction | A group of SQL statements executed on an all-or-nothing basis. | 11 · Database Programming |
| tree recursion | Recursion in which a method calls itself several times and the calls form a tree (Fibonacci). | 3.5 · Recursion |
| try-catch block | A structure that puts code that may raise an exception in try and the code that handles it in catch. | 6 · Exceptions |
| try-with-resources | A form of try that automatically closes opened resources when the block ends. | 6 · Exceptions |
| Turing complete | A programming language or system that can perform every computation a Turing machine can. | 1.2 · Computation and Computational Thinking |
| Turing machine | An abstract model of computation made of a tape, a read-write head, and a state table. | 1.2 · Computation and Computational Thinking |
| two's complement | Representing a negative integer by inverting the bits of its positive counterpart and adding 1. | 1.1 · Computers |
| two-dimensional array | A structure made of rows and columns that is an array of arrays. | 3.3 · Arrays |
| type | An attribute that determines which values a value can take and which operations it allows. | 2.1 · Programming |
| type conversion | Converting a value to another type; widening is automatic and narrowing is explicit. | 2.2 · Syntax Rules |
| type erasure | Removing generic type arguments from the bytecode after they have been checked at compile time. | 4.5 · Abstract Classes and Interfaces |
| type safety | Catching values of the wrong type at compile time. | 5 · Collections |
| unchecked exception | An exception derived from RuntimeException that the compiler does not check. | 6 · Exceptions |
| Unicode | The standard that assigns a number to the characters of all the world's writing systems. | 1.1 · Computers |
| unit test | An automated test that exercises a single method or class on its own. | 7 · Testing and Debugging |
| universal Turing machine | An abstract Turing machine that takes the description and input of another Turing machine and simulates it. | 1.2 · Computation and Computational Thinking |
| upcasting / downcasting | Converting a subclass reference to a superclass type (automatic) or the reverse (with a cast). | 4.4 · Polymorphism |
| UTF-8 | An encoding that writes Unicode code points with 1-4 bytes and is compatible with ASCII. | 1.1 · Computers |
| variable | A memory area bound to a name whose value can change. | 2.2 · Syntax Rules |
| virtual method table | The table, one per class, of method bodies that the JVM uses for dynamic binding. | 4.4 · Polymorphism |
| virtual thread | A 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 architecture | The CPU-memory-I/O organization in which instructions and data are kept in the same memory. | 1.1 · Computers |
| while loop | A loop that tests the condition before each iteration. | 3.1 · Control Structures |
| widening / narrowing conversion | A 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 conversion | The automatic conversion of a smaller numeric type to a larger one (int to double). | 2.1 · Programming |
| wildcard | The ? symbol in a generic type argument that stands for an unknown type. | 4.5 · Abstract Classes and Interfaces |
| wrapper class | A class that carries a primitive type as an object (Integer, Double, and so on). | 4.1 · Objects and Classes |
No terms match your search.
Course page: Object-Oriented Programming with Java · © Sercan Külcü. All rights reserved.