IT Java Chapter 7 Test
Garbage Collector
A built-in function of the Java VM that frees memory as objects are no longer needed or referenced
Nested Class
A class within another class
Hierarchy
A structure that categorizes and organizes relationships among ideas, concepts of things with the most general or all-encompassing component at the top and the more specific, or component with the narrowest scope, at the bottom.
Class Method
Can only access class attributes
Overriding Methods
Changing the definition (body) of an inherited method to suit the subclass.
Overloading
Having more than one constructor or method with the same name but different arguments
Dynamic Method Dispatch
The process of selecting which implementation of a polymorphic operation (method or function) to call at run time.
What does UML stand for?
Unified Modeling Language
Default Constructor
a constructor with no parameters
Mutator Method
a method that changes the state of an object
Method
a procedure or function that is encapsulated as part of a class
UML
a software modeling process that enables system developers to create a blueprint showing the overall functionality of the program being engineered
Class
a template for Java objects
Variable Argument Method
a way to call a method with variable number of arguments
Inheritance
allows classes to gain methods and data by extending to another class (Super class)
Initialize
assign a value
Finalizers
called just before an object is removed by the garbage collector
Polymorphism
concept that allows classes to have different behaviors but same structure of its super class
Instantiate
creating a class object
Object
instance of a class
extends
keyword that declares the superclass of the current class
Static Modifier
keyword that makes something without first creating an instance of a variable
this
keyword used to access variables and methods in a class
Reference
name of a variable associated with an object
default
no access modifier, public
Null
object reference that has not been instantiated
new
operator used to create an instance of a class
Public Access Modifiers
permits access from anywhere
Private Access Modifiers
permits access from only inside of the class
Accessor Method
returns information about an object
Constructor
special method that initializes instance variables
Encapsulation
the hiding of implementation details
Access Modifiers
used to specify accessibility of variables, methods, and classes
Static Variable
variable declared with static modifier and there can only be one of the variable