JAVA CHAPTER 6 QUESTIONS
AND ANSWERS
This is a collection of program statements that specify the fields and methods to
which objects of a particular type may belong.
a.) class
b.) method
c.) parameter
d.) instance - ANSWER a.) class
A class is like a(n) ____________.
a.) house
b.) blueprint
c.) drafting table
d.) architect - ANSWER b.) blueprint
An object is a(n) ___________.
a.) blueprint
b.) primitive data type
c.) variable
d.) instance of a class
This is a class member that holds data.
, a.) method
b.) instance
c.) field
d.) constructor - ANSWER c.) field
This key word causes an object to be created in memory.
a.) create
b.) new
c.) object
d.) construct - ANSWER b.) new
This is a method that gets a value from a class's field, but does not change it.
a.) accessor
b.) constructor
c.) void
d.) mutator - ANSWER a.) accessor
This is a method that stores a value in a field of in some other way changes the
value of a field.
a.) accessor
b.) constructor
c.) void
d.) mutator - ANSWER d.) mutator
When the value of an item is dependent on other data, and that item is not
updated when the other data is changed, what has the value become?
AND ANSWERS
This is a collection of program statements that specify the fields and methods to
which objects of a particular type may belong.
a.) class
b.) method
c.) parameter
d.) instance - ANSWER a.) class
A class is like a(n) ____________.
a.) house
b.) blueprint
c.) drafting table
d.) architect - ANSWER b.) blueprint
An object is a(n) ___________.
a.) blueprint
b.) primitive data type
c.) variable
d.) instance of a class
This is a class member that holds data.
, a.) method
b.) instance
c.) field
d.) constructor - ANSWER c.) field
This key word causes an object to be created in memory.
a.) create
b.) new
c.) object
d.) construct - ANSWER b.) new
This is a method that gets a value from a class's field, but does not change it.
a.) accessor
b.) constructor
c.) void
d.) mutator - ANSWER a.) accessor
This is a method that stores a value in a field of in some other way changes the
value of a field.
a.) accessor
b.) constructor
c.) void
d.) mutator - ANSWER d.) mutator
When the value of an item is dependent on other data, and that item is not
updated when the other data is changed, what has the value become?