AP Test Take Home Quiz #3         NAME_______________________________ PERIOD ______

For each of the following terms, find the best keyword or keywords (where applicable) in Java and explain what the term means. Then give an example of implementation. (I am not looking for a full-blown class implementation, just a line or few lines of code that make clear you know how to use the concept.

 

Object

Meaning:

 

Comparable

Meaning:

Methods that should be written:

.equals

Meaning:

Default return value:

.compareTo

Meaning:

Parameters:

Return value(s):

 

Superclass

Keyword:

Meaning:

 

Subclass

Keyword:

Meaning:


public methodName

Meaning:


private methodName

Meaning:


protected methodName

Meaning:


methodName (without public, private, or protected)

Meaning:


void

Meaning: