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 - Answera.) class
A class is analogous to a(n) ____________.
a.) hou...
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
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
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Brightstars. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $10.49. You're not tied to anything after your purchase.