ANSWERS 100% CORRECT!!
Access modifier correct answers States which classes can access a component of the current
class. This helps with encapsulation. The modifiers you will see are:
+ public: any class can access this element
- private: this element can only be accessed by the object in which it is contained
* package: this element can only be accessed by the object in which it is contained or in by
any instance of a derived class
<none> package.
Accessor correct answers A method used to examine an attribute of an object without
changing it.
API correct answers Application Programming Interface
Argument correct answers A data item specified in a method call. An argument can be a
literal value, a variable, or an expression.
Array correct answers A fixed-size collection of items of the same type and referenced by the
name of the array and index representing the offset from the starting element.
Array Initialized correct answers String[] cars = {"Volvo", "BMW", "Ford", "Mazda"};
ArrayList correct answers A data structure that can hold varying numbers of objects that can
be referenced by an index.
ArrayList Initialized correct answers ArrayList<String> cars = new ArrayList<String>();
Attribute correct answers Another term for a field.
Attribute declaration correct answers String d = " ";
Class correct answers A description of a type of entity, denoting the attributes and behaviors
of all instances of those entities, but not the details which are left to the specific instances.
Class declaration correct answers The first line of a class, which contains the access level, the
keyword class, and the class name.
Class diagram correct answers A visual representation of the relationships between classes.
Constructor correct answers A specialized method that sets the initial values when an objects
is constructed. Note that a constructor never has a return type, not even void.
Declaration correct answers A statement that establishes an identifier and associates attributes
with it, without necessarily reserving its storage (for data) or providing the implementation
(for methods).