Glossary

Every vocabulary term from every chapter, in one place.

.

.class file

A file containing compiled Java byte code. Payroll.class is produced by compiling this lesson’s source file.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
.java file

A file containing Java source code written by the programmer. Payroll.java is the source file in this lesson.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts

@

@param tag

Describes one parameter in a documentation comment.

Chapter 5: Methods › Lecture 2: Local Variables and Return Values
@return tag

Describes the value a method returns; void methods have none.

Chapter 5: Methods › Lecture 2: Local Variables and Return Values

\

\"

An escape sequence representing a double quotation mark.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
\t

An escape sequence representing a horizontal tab.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program

&

&& (AND)

True only when both sides are true.

Chapter 3: Decision Structures › Day 2

|

|| (OR)

True when at least one side is true.

Chapter 3: Decision Structures › Day 2

A

Access modifier

A keyword that controls where a class or member can be accessed.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Address

A number that identifies a specific location in computer memory.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Algorithm

A well-defined set of steps for solving a problem or completing a task. In our payroll example, the steps are followed in order.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
ALU

The part of the CPU that performs math and logic operations. ALU stands for Arithmetic and Logic Unit.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
API

An application programming interface; the available classes and methods that let programmers use existing software tools.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Application

A stand-alone program that a person runs to carry out a task, such as calculating payroll.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Application Software

A program that helps the user complete a particular task.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Argument

A value supplied to a method when that method is called.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
argument

A value passed in a method call.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
argument

A value passed in a method call.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
Assignment

Storing a value in a variable using the = operator.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Assignment operator (=)

The operator that stores the value from the right side in the variable on the left. In grossPay = hours * payRate, Java calculates the product and stores it in grossPay.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Attribute

A piece of data belonging to an object, also commonly called a field in Java.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts

B

Bit

The smallest unit of computer data. A bit can hold either a 0 or a 1.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
block

Statements grouped by braces { }; the if controls the whole block.

Chapter 3: Decision Structures › Day 2
boolean

A primitive type with exactly two values, true and false.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
boolean

The data type that holds only true or false. Every condition produces a boolean value.

Chapter 3: Decision Structures › Day 1
Boolean literal

Either of the unquoted Java values true or false.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
boolean method

A method that returns true or false.

Chapter 5: Methods › Lecture 2: Local Variables and Return Values
Brace

One of the symbols { and }, used to mark the beginning and end of a body or block.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
byte

An integer type with values from -128 through 127.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Byte code

The instructions stored in a compiled Java class file. They are designed for a JVM to execute, rather than for one particular CPU.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts

C

call statement

A statement that runs a method: its name, parentheses, and a semicolon.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
call statement

A statement that runs a method: its name, parentheses, and a semicolon.

Chapter 5: Methods › Lecture 3: Problem Solving with Methods
camelCase

A naming convention that begins with a lowercase word and capitalizes the first letter of each later word.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
case label

An exact compile-time constant to match, such as case 2: or case "Mars":

Chapter 3: Decision Structures › Day 3
Case-sensitive

Treating uppercase and lowercase letters as different characters.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
char

A primitive type that stores one UTF-16 code unit, sufficient for the ordinary single-character examples in this lesson.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Character literal

A character written between single quotation marks.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Class

A named structure that organizes Java code, including methods and data.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Class header

The part of a class declaration that identifies the class and its modifiers before the opening brace.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
code reuse

Writing a task once and calling it wherever it is needed.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
Command prompt / terminal

A text-based interface where a person types commands for the computer to carry out.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Comment

Text in source code that explains the program but does not execute as an instruction.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
compareTo

Returns a negative number, 0, or a positive number depending on alphabetical (Unicode) order.

Chapter 3: Decision Structures › Day 2
Compiler

Software that checks source code and translates it into another form. The javac compiler reports compilation errors and translates valid Java source code into byte code.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Compiler

A tool that checks Java source code and translates it into bytecode.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Compiler error

A problem reported while a program is being compiled that prevents successful compilation. Syntax errors are one type of compiler error.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Concatenation

Joining values together to form a string.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Concatenation operator

The + operator when it joins text with another value.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
condition

An expression that is either true or false, such as fuel < 25.

Chapter 3: Decision Structures › Day 1
condition

The true/false question in the parentheses.

Chapter 3: Decision Structures › Day 1
conditional (ternary) operator

An expression that picks one of two values based on a condition.

Chapter 3: Decision Structures › Day 2
Console

A text-based area where a program can display output.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Control Unit

The part of the CPU that directs how instructions are carried out.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
conversion character

The letter at the end of a specifier: d, f, or s.

Chapter 3: Decision Structures › Day 3
CPU

The part of the computer that processes and carries out instructions. CPU stands for Central Processing Unit.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations

D

Data hiding

Restricting direct access to internal data so outside code works through a controlled interface, such as public methods.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Data type

A classification that determines which values a variable can hold and which operations are allowed.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Debugger

A tool that helps a programmer inspect a running program, follow its steps, and find the causes of errors.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Declaration

Code that introduces a variable by specifying its type and name.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
default

Runs when no case label matches; it is optional.

Chapter 3: Decision Structures › Day 3
Disk Drive

A storage device that saves information on a spinning magnetic disk.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
divide and conquer

Breaking a large problem into smaller, easier tasks.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
documentation comment

A /** */ comment above a method that describes what it does.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
double

A floating-point type that generally provides about fifteen to sixteen significant decimal digits of precision.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program

E

else

The alternative block of an if-else; it has no condition of its own.

Chapter 3: Decision Structures › Day 1
else

Runs only when the condition before it was false.

Chapter 3: Decision Structures › Day 1
else-matching rule

An else pairs with the nearest preceding if that does not already have an else.

Chapter 3: Decision Structures › Day 2
Encapsulation

Combining related data and the methods that work with that data into one unit, such as an object.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
equals

Returns true if two Strings contain exactly the same characters.

Chapter 3: Decision Structures › Day 2
equals

Compares the characters in two Strings.

Chapter 3: Decision Structures › Day 2
equalsIgnoreCase

Like equals, but uppercase and lowercase count as the same.

Chapter 3: Decision Structures › Day 2
Escape sequence

A backslash followed by another character that represents a special character inside a literal.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
expression

Code that produces a value; it must be used somewhere.

Chapter 3: Decision Structures › Day 2

F

fall-through

When a case has no break, execution continues into the next case's statements.

Chapter 3: Decision Structures › Day 3
Fetch, Decode, Execute Cycle

The repeated process the CPU uses to get, understand, and carry out instructions.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
field width

The minimum number of characters the value takes up.

Chapter 3: Decision Structures › Day 1
field width

The minimum number of characters the value takes up.

Chapter 3: Decision Structures › Day 3
flag

An option right after %: , groups digits, 0 pads with zeros, - left-aligns.

Chapter 3: Decision Structures › Day 1
flag

A boolean variable that records whether a condition was true, such as boolean batteryReady = (battery >= 60);

Chapter 3: Decision Structures › Day 1
flag

An option right after %: , groups digits, 0 pads with zeros, - left-aligns.

Chapter 3: Decision Structures › Day 3
float

A floating-point type that generally provides about six to seven significant decimal digits of precision.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Floating-point number

A number stored in a format that can represent fractional values and very large or very small magnitudes.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
format specifier

A placeholder starting with % that controls how a value is displayed, such as %.2f.

Chapter 3: Decision Structures › Day 1
format specifier

A placeholder starting with % that controls how one value is displayed.

Chapter 3: Decision Structures › Day 3
functional decomposition

Breaking a problem into tasks, each done by its own method.

Chapter 5: Methods › Lecture 3: Problem Solving with Methods

H

Hidden data

Internal data that outside code is not allowed to read or change directly. In the diagram, outside code uses the object’s methods to work with it.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
hierarchical call

A method call made from inside another method.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments

I

IDE (Integrated Development Environment)

An application that brings programming tools, such as an editor, compiler, and debugger, into one place.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Identifier

A name used for something in a program, such as a class, method, or variable. The programmer chose the identifiers Payroll, hours, payRate, and grossPay in this example. Some other identifiers come from Java’s existing library.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Identifier

A name used for something in a program, such as a class, method, or variable. The programmer chose the identifiers Payroll, hours, payRate, and grossPay in this example. Some other identifiers come from Java’s existing library.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Identifier

A name used to identify something in a program, such as a variable, method, or class.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
if

Runs its block only when its condition is true.

Chapter 3: Decision Structures › Day 1
if-else

Runs exactly one of two blocks: the if block when the condition is true, the else block when it is false.

Chapter 3: Decision Structures › Day 1
immutable

Can't be changed once created; a String's text is immutable.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
Input Device

Hardware that sends information into a computer.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Input Device

Hardware used to send information into a computer.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
int

An integer type with values from -2,147,483,648 through 2,147,483,647.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Integer

A whole number with no fractional part; it can be negative, zero, or positive.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Interpreter

Software that carries out instructions as a program runs. A JVM can interpret byte code and can also compile some byte code into machine code while running.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts

J

Java

A programming language used to write programs. Java source code is commonly compiled into byte code that a Java Virtual Machine executes.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
java

The command used here to start the JVM and run the compiled class. java Payroll uses the class name without the .class extension.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Java Virtual Machine (JVM)

Software that loads and executes Java byte code. Compatible JVMs on different systems allow the same class file to run on those systems.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
javac

The command that invokes the Java compiler. javac Payroll.java compiles the source file and produces Payroll.class when compilation succeeds.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
JDK (Java Development Kit)

The collection of tools used to develop Java programs, including the javac compiler.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts

K

Key word (reserved word)

A word built into a programming language with a defined meaning. Java reserves these words, so programmers cannot use them as their own names. Examples here include public, class, int, and double.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Key word (reserved word)

A word built into a programming language with a defined meaning. Java reserves these words, so programmers cannot use them as their own names. Examples here include public, class, int, and double.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Keyword

A word Java reserves for a specific purpose in the language.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program

L

left-justify flag (-)

Places the value at the left of its field width, padding on the right.

Chapter 3: Decision Structures › Day 3
lifetime

How long a variable exists; a local variable lasts for one call of its method.

Chapter 5: Methods › Lecture 2: Local Variables and Return Values
lifetime

How long a variable exists; a local variable lasts for one call of its method.

Chapter 5: Methods › Lecture 2: Local Variables and Return Values
Line break

A change in output position that moves subsequent text to a new line.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Local variable

A variable declared inside a method or another local block.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
local variable

A variable declared inside a method or a block.

Chapter 3: Decision Structures › Day 2
local variable

A variable declared inside a method; only that method can use it.

Chapter 5: Methods › Lecture 2: Local Variables and Return Values
Logic error

A mistake that allows a program to run but produces an unintended result.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Logical error

A mistake in the program’s plan or calculation that causes an incorrect result even though the program can compile and run.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Logical error

A mistake in the program’s plan or calculation that causes an incorrect result even though the program can compile and run.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
logical operator

An operator that combines or flips boolean expressions: &&, ||, !.

Chapter 3: Decision Structures › Day 2

M

Main Memory

Temporary working memory that holds programs and information currently being used. It is also called RAM.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Main method

The method Java calls to begin executing the programs used in this course.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Method

A named group of instructions associated with a class or object that defines an action or behavior.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Method

A named block of code that performs a particular job.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
method

A named block of statements that runs when it is called.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
Method body

The code enclosed by the braces that belong to a method.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
method body

The statements inside the braces; they run each time the method is called.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
Method call

Code that asks a method to perform its job.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Method header

The part of a method declaration that specifies information such as its name, return type, and parameters.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
method header

The first line of a method: modifiers, return type, name, and parameter list.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
method header

The first line of a method: modifiers, return type, name, and parameter list.

Chapter 5: Methods › Lecture 3: Problem Solving with Methods
modifier

A keyword such as public or static at the start of a header.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
Multiplication operator (*)

The operator that multiplies its two operands. Here it multiplies hours by payRate.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Multitasking

The ability of an operating system to keep multiple programs running.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations

N

narrowing conversion

Converting a higher-ranked type to a lower one, such as double to int; needs a cast.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
narrowing conversion

Converting a higher-ranked type to a lower one, such as double to int; needs a cast.

Chapter 5: Methods › Lecture 3: Problem Solving with Methods
nested if

An if inside another if; the inner check is reached only when the outer condition is true.

Chapter 3: Decision Structures › Day 1
Non-volatile

Describes storage that keeps its information when the power turns off.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations

O

Object

A software unit that brings related data and the methods that work with that data together. It does not have to represent a physical thing.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Object-oriented programming (OOP)

An approach to programming that organizes related data and behavior into objects.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Operand

A value or expression that an operator works on. In hours * payRate, hours and payRate are the two operands of multiplication.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Operating System

The main software that manages the computer’s hardware and supports other programs.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Operator

A symbol that tells the program to perform an operation on one or more values. In this example, * multiplies and = assigns a value.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Operator

A symbol that tells the program to perform an operation on one or more values. In this example, * multiplies and = assigns a value.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Operator

A symbol that performs an operation on one or more values.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Optical Disk

A storage disc, such as a CD or DVD, that a laser reads.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Output

Information a program produces for a user or another destination.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Output Device

Hardware that receives information from a computer.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Output Device

Hardware used to receive information from a computer.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Output formatting

The arrangement of displayed text, including spaces, line breaks, and indentation.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Output position

The location where the next character will appear in the console.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program

P

parameter

A variable in a method header that receives an argument.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
parameter list

The parameters in a header's parentheses, separated by commas.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
pass by value

Passing a copy of an argument's value; the method can't change the caller's variable.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
Portability

The ability to use a program on different computer systems. Java’s byte code can run on different platforms that have compatible JVMs and the program’s required dependencies.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
precedence

The order operators are evaluated in; && comes before ||.

Chapter 3: Decision Structures › Day 2
precision

Digits after the decimal point.

Chapter 3: Decision Structures › Day 1
precision

Digits after the decimal point.

Chapter 3: Decision Structures › Day 3
print

A method that displays a value without automatically adding a line break afterward.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
printf

A print method that fills format specifiers with values.

Chapter 3: Decision Structures › Day 1
println

A method that displays a value and then ends the current output line.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Procedural programming

An approach to programming that organizes a program around procedures that work with data. In the diagram, the data is separate and passed between procedures.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Procedure

A named group of instructions that performs a task.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Program

A set of instructions written to tell a computer how to carry out a task.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Program

A set of instructions that tells a computer what to do.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Programmable

Able to receive different instructions and perform different tasks.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Programmer

A person who creates, tests, and fixes computer programs.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Programmer-defined name

An identifier that the programmer chooses, rather than a reserved word built into the language. Payroll and grossPay are examples.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Programming Language

A set of words, symbols, and rules used to write instructions for a computer.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Pseudocode

An informal description of an algorithm that mixes everyday language with programming ideas. It helps people plan a program and does not have to follow Java’s exact syntax.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Pseudocode

An informal description of an algorithm that mixes everyday language with programming ideas. It helps people plan a program and does not have to follow Java’s exact syntax.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
public

An access modifier that allows access from other classes, subject to Java's access rules.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Public method

A method that outside code is allowed to call. It can provide controlled access to an object’s hidden data.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Punctuation

Marks that help organize the structure of code, such as semicolons, braces, parentheses, and commas.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Punctuation

Marks that help organize the structure of code, such as semicolons, braces, parentheses, and commas.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts

R

range check

A condition that tests whether a value is inside or outside two limits.

Chapter 3: Decision Structures › Day 2
Reassignment

Replacing a variable's current value with another compatible value.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
reference

The memory location of an object. A String variable stores a reference.

Chapter 3: Decision Structures › Day 2
Reference type

A type whose variables hold references to objects rather than primitive values directly.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
reference variable

A variable that holds the location of an object, such as a String.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
relational operator

An operator that compares two values and produces a boolean: <, <=, >, >=, ==, !=.

Chapter 3: Decision Structures › Day 1
Reserved keyword

A word that Java reserves for language syntax and that cannot be used as an ordinary identifier.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
return statement

Ends a method and sends a value back to the code that called it.

Chapter 5: Methods › Lecture 2: Local Variables and Return Values
return type

The type of value a method sends back; void means none.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
return type

The type of value a method sends back; void means none.

Chapter 5: Methods › Lecture 2: Local Variables and Return Values
return type

The type of value a method sends back; void means none.

Chapter 5: Methods › Lecture 2: Local Variables and Return Values
Runtime error

An error that occurs while a program is executing. If it is not handled, it can interrupt the program or cause it to stop.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Runtime error

An error that occurs while a program is executing. If it is not handled, it can interrupt the program or cause it to stop.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts

S

scope

The part of a program where a variable can be used by name.

Chapter 3: Decision Structures › Day 2
scope

The part of a program where a variable can be used.

Chapter 5: Methods › Lecture 2: Local Variables and Return Values
scope

The part of a program where a variable can be used.

Chapter 5: Methods › Lecture 2: Local Variables and Return Values
SDK (Software Development Kit)

A collection of tools for developing software for a particular platform. The JDK is a development kit for Java.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Secondary Storage

Hardware that keeps programs and files for long-term use.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Secondary Storage

Hardware that keeps programs and files for long-term use.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
selector

The value in switch ( ) that is compared to each case label.

Chapter 3: Decision Structures › Day 3
Semicolon

The ; symbol that marks the end of many Java statements.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Semicolon (;)

A punctuation mark that ends many Java statements, including the assignments and print statement in Payroll.java. Class headers and braces do not need an ending semicolon.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
short

An integer type with values from -32,768 through 32,767.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
short-circuit evaluation

Java stops evaluating as soon as the result is known.

Chapter 3: Decision Structures › Day 2
short-circuit evaluation

Java stops evaluating a && or || expression as soon as the result is known.

Chapter 3: Decision Structures › Day 2
Significant digits

The digits that contribute to a number's precision, counted across the number rather than only after its decimal point.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
single responsibility

Each method has one clear job.

Chapter 5: Methods › Lecture 3: Problem Solving with Methods
single responsibility

Each method has one clear job.

Chapter 5: Methods › Lecture 3: Problem Solving with Methods
Software

Programs and instructions that tell a computer what to do.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Software engineering

An organized approach to designing, building, testing, and maintaining software, often involving a team and a larger project.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Solid-State Drive

A storage device that uses electronic memory and has no moving parts. It is often shortened to SSD.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Source code

The program text a programmer writes in a programming language. The Java source code in this lesson is saved in Payroll.java.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Source code

The instructions a programmer writes in a programming language, such as Java.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
stacked labels

Two or more labels with no statements between them share the same body.

Chapter 3: Decision Structures › Day 3
Statement

A unit of code that tells the program to perform an action. The assignment on line 8 is one statement. This statement ends with a semicolon.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
static

A modifier that allows a method to be called without first creating an object of its class.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Stored value

The information a variable currently holds.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
String

A Java reference type used to represent text.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
String literal

Text written directly in code between double quotation marks.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
String.format

Builds formatted text and returns it as a String instead of printing it.

Chapter 3: Decision Structures › Day 3
substring

A method that returns the characters from start up to, but not including, end.

Chapter 5: Methods › Lecture 2: Local Variables and Return Values
Syntax

The rules for arranging the words and symbols of a programming language into valid code. For example, the assignment statement on line 8 must end with a semicolon.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Syntax

The rules that describe how valid Java code must be written.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
Syntax error

A mistake that breaks the language’s rules for writing code, such as a missing required semicolon or closing brace. The compiler reports it before the compiled program can run.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Syntax error

A mistake in the structure of code that prevents it from being accepted as valid Java.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
System.out

Java's standard output stream, used here to send text to the console.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program

T

Test data

Input values chosen to check whether a program behaves as expected.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
throws clause

throws IOException in a header: this method may fail while reading a file.

Chapter 5: Methods › Lecture 3: Problem Solving with Methods
throws clause

throws IOException in a header: this method may fail while reading a file.

Chapter 5: Methods › Lecture 3: Problem Solving with Methods
Time Sharing

Dividing the CPU’s attention among multiple running programs.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations
Tracing

Following a program's instructions in order to determine what happens.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program

U

Uninitialized local variable

A local variable that has been declared but has not yet been assigned a value.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
USB Drive

A small, portable storage device that connects to a USB port.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations

V

Validation of results

Checking that a program’s actual results are correct and meet the intended goal, rather than checking only that the program runs.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
value-returning method

A method that sends a value back to the code that called it.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
value-returning method

A method that sends a value back to the code that called it.

Chapter 5: Methods › Lecture 2: Local Variables and Return Values
value-returning method

A method that sends a value back to the code that called it.

Chapter 5: Methods › Lecture 2: Local Variables and Return Values
Variable

A named storage location that holds a value the program can use or change. Think of it as a labeled box that holds one value at a time.

Chapter 1: Intro To Computers & Java › Lecture 2: Programs, Java & OOP Concepts
Variable

A named storage location that holds a value.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
void

A return type indicating that a method does not return a value to its caller.

Chapter 2: Java Fundamentals › Lecture 1: Writing Your First Java Program
void method

A method that does a task and sends no value back.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments
Volatile

Describes memory that loses its information when the power turns off.

Chapter 1: Intro To Computers & Java › Lecture 1: Hardware & Software Foundations

W

widening conversion

Converting a lower-ranked type to a higher one, such as byte to int; automatic.

Chapter 5: Methods › Lecture 1: Void Methods and Arguments