A Guide To Programming In Java – Final Exam

Array
A structure that can store many of the same type of data

Out Of Bounds Exception
Exception thrown when an invalid index is used

Autoboxing
A primitive is automatically converted to a wrapper class object

Auto-unboxing
The process in which a primitive is automatically extracted from a wrapper class object

Collection
A group of related elements that are stored together as a single unit

Collections Framework
Classes for implementing collections

Dynamic Array
An array that varies in size at run time

Element
A data item in an array

Generics
Used for communicating to the computer the type of data stored in an arraylist

Index
The value associated with an element in an array

Linear Search
An algorithm for searching an array in which each element of the array is checked one after the other

Traversing
Iterating through element of an array

Type Parameter
The part of an array list statement that informs the compiler of what type of objects the arraylist can contain ()

Unicode
The sixteen bit digital code used to represent every letter and symbol

ArrayList
A java.util class with methods for implementing a dynamic array

Double
A java.lang class for wrapping double values in an objectq

for
A statement that can be used to traverse an array

Integer
A java.lang class for wrapping int values in an object

[]
the operators for accessing an array element

String
A java.lang class with methods for convering a string to a set of characters of for inspecting individual characters of a string

Accessor Method
A method of a class that is used to determine the value of a variable number

Behavior
The action and communication an object provides

Class
A data type that defines variables for the state of an object and methods for an object’s behavior

Classbody
The variables, constructors, and methods that implement a class

ClassCastException
An exception thrown when an object variable is cast with an incompatible class

Class declaration
The first line of a class, which contains the access level and other important information

Class method
A method of a class that can be called from the class itself

Class variable
A variable of a class that exists as one copy that all instances of a class refer to

Client code
An application that uses one or more classes

Constructor
The part of a class that is used to initialize the variable members of a class

Encapsulation
Protecting an object’s data

Has-a relationship
Demonstrated by a class that contains another class

Helper method
A method of a class that is used by other methods in a class to help complete a task

Information hiding
AKA Encapsulation

Inherit
To receive the methods of a superclass

Instance
An object of a class

Instance Method
A method of a class that changes the state of a class

Member
A variable or method of a class

Message
Information passed from one object to another

Modifier method
A method of a class that is used to change the value of a variable member

Modular
An application that uses components that are separately written and maintained

Object
An instance of a class

Object Casting
To cast and object as the appropriate class

Object oriented development
The solution to the task that is implemented as a system of objects

Override
To redefine a method from a superclass in a subclass

Reusability
A feature of object-oriented programming that reduces development time and decreases the likelihood of bugs

State
The data an object stores

Subclass
A class below another class in a class hierarchy

Superclass
The upper-most class in a class hierarchy

Visibility
The access level of a method

public
An access modifier used to declare a class that is visible to the client code

private
An access modifier used to declare class members visible to the class but not the client code

static
The keyword used in the declaration of a variable or method in a class to indicate that the member is a class method