1: Chapter 3 Flashcards
Parameter (parameterize)
Any of a set of characteristics that distinguish different members of a family of tasks. To parameterize a task is to identify a set of its parameters.
Method overloading
Java allows you to have more than one method with the same name, as long as they have different parameters.
Def: The ability to define two or more different methods with the same name but different method signatures.
Method signature
The name of a method, along with its number and type of parameters.
Return
To send a value out as the result of a method that can be used in an expression in your program. Void methods do not return any value.
What is the keyword used to indicate that a method returns no value?
void
What is the name of the package that contains Scanner?
java.util
When you want to call a method on an object, in other words - send the object a message - what is the proper syntax?
objectName.methodName()
Object
A programming entity that contains state (data) and behavior (methods).
Class
A category or type of object.
Index
An integer used to specify a location in a sequence of values. Java generally uses zero-based indexing (with 0 as the first index value, followed by 1, 2, 3 and so on).
Exception
A runtime error that prevents a program from continuing its normal execution.
Immutable object
An object whose value cannot be changed.
Console input
Responses typed by the user when an interactive program pauses for input.
Constructor (construct)
Creates and initializes an object. Objects in Java programs must be constructed before they can be used.
Token
A single element of input (e.g. one word, one number). Whitespace separates tokens.