A | B |
abstraction | the concept of using a method or class to hide low-level details. |
access specifier | an identifier that specifies the access level of a variable, method, or class. |
accessor method | a method that returns the value of an instance variable. |
argument | a value that is passed to a method. |
assert statement | a statement that can be used to verify something is true at a given point in the program. |
behavior | action(s) that provide the performance expected of a method. |
block | a set of statements enclosed by curly braces {}. |
brute force approach | an inefficient procedure for problem solving that is characterized by an excessive repetition of operations. A brute force approach indicates inadequate abstraction. |
class method | a message that must be sent to a class instead of an object. A class method is modified by the static keyword. |
class variable | a variable defined within a class, outside of a method, with the word static. |
constructor | an item that initializes a new object's instance variables. |
getter | another term for an accessor method. |
identifiers | words whose meanings are defined by the programmer, such as the names of classes, methods, variables, and constants. |
instance method | a message that is sent to an object, not a class. |
instance variable | a variable defined within a class, outside of a method, without the word static. |
keyword | words whose meanings are predefined, such as class, int, void, double, return, final, static, and many others. |
local | a variable or constant that is declared and used within a method. |
method | a message that performs an internal set of statements. There are two types of methods in Java: a void method and a non-void method. |
method library | a class used to store a group of related methods. |
non-void method | a method that returns a value after performing an internal set of statements. |
parameter | a variable that stores an argument. |
return statement | a statement that returns a value to a calling method. |
return type | the type of value that will be returned by a non-void method. |
reuseability | the ability to reuse code from one program in a different program. |
scope | that part of a program where a particular declaration of a word provides its meaning. |
static | a keyword that associates a method or variable with a class, not a specific instance of the class. |
test class | a class whose sole purpose is to test the methods in the program or library and make certain that they work as they should. |
test-driven development | an approach for building methods that uses feedback from a test method to help define the method itself. |
unit testing | an approach in which you build a test class containing a test method for each method in our program or library, and then run its test methods. |
void | indicates the absence of a return type or an empty parameter list. |
void method | method that performs its set of internal statements, without returning a value to the sender of the message. |