A Guide To Programming In Java – Final Exam – Flashcards

Unlock all answers in this set

Unlock answers
question
Array
answer
A structure that can store many of the same type of data
question
Out Of Bounds Exception
answer
Exception thrown when an invalid index is used
question
Autoboxing
answer
A primitive is automatically converted to a wrapper class object
question
Auto-unboxing
answer
The process in which a primitive is automatically extracted from a wrapper class object
question
Collection
answer
A group of related elements that are stored together as a single unit
question
Collections Framework
answer
Classes for implementing collections
question
Dynamic Array
answer
An array that varies in size at run time
question
Element
answer
A data item in an array
question
Generics
answer
Used for communicating to the computer the type of data stored in an arraylist
question
Index
answer
The value associated with an element in an array
question
Linear Search
answer
An algorithm for searching an array in which each element of the array is checked one after the other
question
Traversing
answer
Iterating through element of an array
question
Type Parameter
answer
The part of an array list statement that informs the compiler of what type of objects the arraylist can contain ()
question
Unicode
answer
The sixteen bit digital code used to represent every letter and symbol
question
ArrayList
answer
A java.util class with methods for implementing a dynamic array
question
Double
answer
A java.lang class for wrapping double values in an objectq
question
for
answer
A statement that can be used to traverse an array
question
Integer
answer
A java.lang class for wrapping int values in an object
question
[]
answer
the operators for accessing an array element
question
String
answer
A java.lang class with methods for convering a string to a set of characters of for inspecting individual characters of a string
question
Accessor Method
answer
A method of a class that is used to determine the value of a variable number
question
Behavior
answer
The action and communication an object provides
question
Class
answer
A data type that defines variables for the state of an object and methods for an object's behavior
question
Classbody
answer
The variables, constructors, and methods that implement a class
question
ClassCastException
answer
An exception thrown when an object variable is cast with an incompatible class
question
Class declaration
answer
The first line of a class, which contains the access level and other important information
question
Class method
answer
A method of a class that can be called from the class itself
question
Class variable
answer
A variable of a class that exists as one copy that all instances of a class refer to
question
Client code
answer
An application that uses one or more classes
question
Constructor
answer
The part of a class that is used to initialize the variable members of a class
question
Encapsulation
answer
Protecting an object's data
question
Has-a relationship
answer
Demonstrated by a class that contains another class
question
Helper method
answer
A method of a class that is used by other methods in a class to help complete a task
question
Information hiding
answer
AKA Encapsulation
question
Inherit
answer
To receive the methods of a superclass
question
Instance
answer
An object of a class
question
Instance Method
answer
A method of a class that changes the state of a class
question
Member
answer
A variable or method of a class
question
Message
answer
Information passed from one object to another
question
Modifier method
answer
A method of a class that is used to change the value of a variable member
question
Modular
answer
An application that uses components that are separately written and maintained
question
Object
answer
An instance of a class
question
Object Casting
answer
To cast and object as the appropriate class
question
Object oriented development
answer
The solution to the task that is implemented as a system of objects
question
Override
answer
To redefine a method from a superclass in a subclass
question
Reusability
answer
A feature of object-oriented programming that reduces development time and decreases the likelihood of bugs
question
State
answer
The data an object stores
question
Subclass
answer
A class below another class in a class hierarchy
question
Superclass
answer
The upper-most class in a class hierarchy
question
Visibility
answer
The access level of a method
question
public
answer
An access modifier used to declare a class that is visible to the client code
question
private
answer
An access modifier used to declare class members visible to the class but not the client code
question
static
answer
The keyword used in the declaration of a variable or method in a class to indicate that the member is a class method
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New