Java Games: Flashcards, matching, concentration, and word search.

Java Chapter 9: Methods - Key Terms

AB
abstractionthe concept of using a method or class to hide low-level details.
access specifieran identifier that specifies the access level of a variable, method, or class.
accessor methoda method that returns the value of an instance variable.
argumenta value that is passed to a method.
assert statementa statement that can be used to verify something is true at a given point in the program.
behavioraction(s) that provide the performance expected of a method.
blocka set of statements enclosed by curly braces {}.
brute force approachan inefficient procedure for problem solving that is characterized by an excessive repetition of operations. A brute force approach indicates inadequate abstraction.
class methoda message that must be sent to a class instead of an object. A class method is modified by the static keyword.
class variablea variable defined within a class, outside of a method, with the word static.
constructoran item that initializes a new object's instance variables.
getteranother term for an accessor method.
identifierswords whose meanings are defined by the programmer, such as the names of classes, methods, variables, and constants.
instance methoda message that is sent to an object, not a class.
instance variablea variable defined within a class, outside of a method, without the word static.
keywordwords whose meanings are predefined, such as class, int, void, double, return, final, static, and many others.
locala variable or constant that is declared and used within a method.
methoda 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 librarya class used to store a group of related methods.
non-void methoda method that returns a value after performing an internal set of statements.
parametera variable that stores an argument.
return statementa statement that returns a value to a calling method.
return typethe type of value that will be returned by a non-void method.
reuseabilitythe ability to reuse code from one program in a different program.
scopethat part of a program where a particular declaration of a word provides its meaning.
statica keyword that associates a method or variable with a class, not a specific instance of the class.
test classa 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 developmentan approach for building methods that uses feedback from a test method to help define the method itself.
unit testingan 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.
voidindicates the absence of a return type or an empty parameter list.
void methodmethod that performs its set of internal statements, without returning a value to the sender of the message.


Mountain Brook H. S.
Mountain Brook, AL

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities