1: Chapter 3 Flashcards

1
Q

Parameter (parameterize)

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Method overloading

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Method signature

A

The name of a method, along with its number and type of parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Return

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the keyword used to indicate that a method returns no value?

A

void

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the name of the package that contains Scanner?

A

java.util

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When you want to call a method on an object, in other words - send the object a message - what is the proper syntax?

A

objectName.methodName()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Object

A

A programming entity that contains state (data) and behavior (methods).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Class

A

A category or type of object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Index

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Exception

A

A runtime error that prevents a program from continuing its normal execution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Immutable object

A

An object whose value cannot be changed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Console input

A

Responses typed by the user when an interactive program pauses for input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Constructor (construct)

A

Creates and initializes an object. Objects in Java programs must be constructed before they can be used.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Token

A

A single element of input (e.g. one word, one number). Whitespace separates tokens.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Whitespace

A

Spaces, tab characters, and new line characters.

17
Q

Package

A

A collection of related Java classes.

18
Q

Import declaration

A

A request to access a specific Java package.

19
Q

Pixel

A

A single small dot on a computer screen.

20
Q

Font

A

An overall design for a set of text characters, including the style, size, weight, and appearance of each character.