100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Java: Classes and Objects Exam Questions With Correct Answers. $10.49
Add to cart

Exam (elaborations)

Java: Classes and Objects Exam Questions With Correct Answers.

 0 view  0 purchase
  • Course
  • Java
  • Institution
  • Java

Java: Classes and Objects Exam Questions With Correct Answers. Objects have two properties. One is state. What is the other? - AnswerBehavior The state of an object is stored in _____ _____ - AnswerInstance variables The behavior of an object is represented by ______ ______ - AnswerInstance met...

[Show more]

Preview 1 out of 2  pages

  • January 14, 2025
  • 2
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • Java
  • Java
avatar-seller
Brightstars
©BRIGHSTARS 2024/2025 ALL RIGHTS RESERVED.




Java: Classes and Objects Exam Questions
With Correct Answers.


Objects have two properties. One is state. What is the other? - Answer✔Behavior

The state of an object is stored in _____ _____ - Answer✔Instance variables

The behavior of an object is represented by ______ ______ - Answer✔Instance methods
The job of a _____ is to initialize instance variables at the time an object is created. -
Answer✔Constructor
Nested inside a class declaration are three kinds of declarations. What are they? -
Answer✔Constructor declarations
Variable declarations
Method declarations

The words public and private are _____ _____ - Answer✔Access modifiers
A method is allowed to have _______, which represent data that will be supplied when the
method is called. - Answer✔Parameters
Once a class has been declared, we can create objects that belong to the class. We say that these
objects are ______ of the class. - Answer✔Instances
An object variable doesn't actually store an object. Instead, it stores a ______ to an object. -
Answer✔Reference

The keyword ______ is placed before a class name in order to create an object. - Answer✔new
To perform an operation on an object, we _______ one of the instance methods associated with
the object. - Answer✔Call

How do you call an instance method - Answer✔object.methodname(arguments)
Reference variables are known as _______ variables in other programming languages. -
Answer✔Pointer


1|Page

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

56880 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 15 years now

Start selling
$10.49
  • (0)
Add to cart
Added