Skip to main content
Engineering LibreTexts

10.11: Vocabulary

  • Page ID
  • variable:
    A named storage location for values. All variables have a type, which is declared when the variable is created.
    A number, string, or other data that can be stored in a variable. Every value belongs to a type (for example, int or String).
    A statement that creates a new variable and specifies its type.
    Mathematically speaking, a set of values. The type of a variable determines which values it can have.
    The structure of a program; the arrangement of the words and symbols it contains.
    A reserved word used by the compiler to analyze programs. You cannot use keywords (like public, class, and void) as variable names.
    A statement that gives a value to a variable.
    To assign a variable for the first time.
    The variables in a program and their current values.
    state diagram:
    A graphical representation of the state of a program at a point in time.
    A symbol that represents a computation like addition, multiplication, or string concatenation.
    One of the values on which an operator operates. Most operators in Java require two operands.
    A combination of variables, operators, and values that represents a single value. Expressions also have types, as determined by their operators and operands.
    A data type that represents numbers with an integer part and a fractional part. In Java, the default floating-point type is double.
    rounding error:
    The difference between the number we want to represent and the nearest floating-point number.
    To join two values, often strings, end-to-end.
    order of operations:
    The rules that determine in what order operations are evaluated.
    The ability to combine simple expressions and statements into compound expressions and statements.
    compile-time error:
    An error in the source code that makes it impossible to compile. Also called a “syntax error”.
    To analyze the structure of a program; what the compiler does first.
    run-time error:
    An error in a program that makes it impossible to run to completion. Also called an “exception”.
    logic error:
    An error in a program that makes it do something other than what the programmer intended.
    • Was this article helpful?