JAVA Ch. 6 Exam Questions With Correct
Answers.
This is a collection of programming statements that specify the fields and methods that a
particular type of object may have.
a.) class
b.) method
c.) parameter
d.) instance - Answer✔a.) class
A class is analogous to 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 - Answer✔d.) instance of a class
This is a class member that holds data.
a.) method
b.) instance
c.) field
1|Page
, ©BRIGHSTARS 2024/2025 ALL RIGHTS RESERVED.
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?
a.) bitter
b.) stale
c.) asynchronous
d.) moldy - Answer✔b.) stale
This is a method that is automatically called when an instance of a class is created.
a.) accessor
b.) constructor
c.) void
d.) mutator - Answer✔b.) constructor
2|Page