• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/30

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

30 Cards in this Set

  • Front
  • Back

Access modifier

A keyword that controls the visibility of class members to objects of other classes. The modifiers 'private' and 'public' are the most frequently used access modifiers.

Accessor message

Another name for a 'getter message'

Accessor method

Another name for a 'getter method'

Actual argument

An actual argument is a value used in a message that is copied to a formal argument for use inside the corresponding method. Actual arguments must be of a compatible responding formal arguments.

Assignment

assignment is the process that results in the variable on the left-hand side of the assignment operator receiving a copy of the value on the right hand side of the assignment operator. The value may be a primitive value or a reference to an object. If the right hand side of the assignment operator is an expression, it is evaluated first.

Assignment operator

An operator (=) used to assign a value to a variable in an assignment statement.

Assignment statement

A statement that assigns a particular value to a variable (see assignment)

Attribute

Some property or characteristic that can be accessed using a getter method. Attributes are generally implemented by instance variables. examples of such attributes are 'position' and c'olour' for 'frog' objects and 'balance' and 'holder' for 'account' objects

Attribute value

The current value of an attribute, often the same as an instance variable value, but possibly computed using instance variables

Automatic type conversion

Where the java compiler converts a value of some type to another type without the need for any explicit conversion of type on the part of the programmer. Automatic type conversion occurs in certain contexts, such as in an assignment statement when a compatible type on the right-hand side of the assignment is converted to the type of the variable on the left-hand side of the assignment.

Behaviour

A term used to describe the way in which an object behaves in response to the message in it's protocol

Binary digit

Either of the two digits 0 and 1 in the binary number system. Binary digits are used for the internal representation of numbers, characters and instructions. The binary digit is the smallest unit of storage.

Binary operator

An operator that has two operands

Bit

An abbreviation of a binary digit.

Statement Block

A statement or sequence of statements 'bundle together' for use in a particular context. Any sequence of statements can be turned into a block by closing it in braces (curly brackets)

Body

Another word for a statement block; for example, the body of a 'while' loop is a statement block.

Boolean condition

A boolean expression used to control the conditional execution of a statement block.

Boolean expression

An expression that evaluates to either 'true' or 'false'.

Boolean operator

An operator used to combine a simple boolean expressions to form more complex boolean expressions, which in turn can be combined with other boolean expressions. They are also known as 'logical operators'.

Bytecode

Bytecode is the intermediate code produced by the java compiler. In bluej, compilation is done when the compile button is pressed. this will create a bytecode file, for example, 'Frog class', from the source code file 'Frog. Java'. The bytecode file is portable because each computer that can run Java programs has a Java virtual machine that understands bytecode and converts it into the machine code required for that particular computer. Bytecode is so called because it's instructions are a byte in size

Casting

The prefixing of a value with the name of a type in parentheses in order to convert a copy of that value into a different type. For example, '(int) 99.0' casts the value 99.0 into an 'int' value.

Class

A class is like a blueprint for the creation of objects and ensures that all its instances have the same instance variables and behave in response to messages in an identical manner

Class header

The line of code in a class definition that provides information about the class such as it's name and access modifier. A class header must include the keyword 'class'. Example simple usage: 'public class marionette'

Class method

Classes, as well as defining instance methods, can also define class methods. These are methods that can be executed irrespective of whether any instances of a class of been created. A class method is executed as a result of an invocation (not by sending a message to an instance of a class). Class methods in Java are specified by including the 'static' keyword in a method header.

Comment

A comment is a piece of text in program code to assist human readers in understanding the code, and which the compiler ignores. In Java mult-iline comments are delimited by /* and */. End of line comments beginning with two for slashes (//) and continue to the end of the line of which they begin. Javadoc comments are placed between the symbols /** and */ and must appear immediately before a method, constructor or class header.

Comparison operators

A set of operators used for comparing values of expressions, including ==, > and <.

Compiler

A program that first checks that source code written in a high-level language is syntactically correct. If the check is successful the compiler translates the source code into bytecode or machine code. The java compiler translates source code into bytecode.

Software component

A piece of software that can be readily combined with other components to construct more complex software.

Compound expression

An expression built up using other sub- expressions, for example, the following is a compound expression: (3+2) *(6-3).

Concatenation

The joining of two strings. In Java the string concatenation operator is + (the plus sign). For example, "Milton" + "Keynes" evaluates to "Milton Keynes".