100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Java: Classes and Objects Exam Questions With Correct Answers.

Rating
-
Sold
-
Pages
2
Grade
A+
Uploaded on
14-01-2025
Written in
2024/2025

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 methods The job of a _____ is to initialize instance variables at the time an object is created. - AnswerConstructor Nested inside a class declaration are three kinds of declarations. What are they? - AnswerConstructor declarations Variable declarations Method declarations The words public and private are _____ _____ - AnswerAccess modifiers A method is allowed to have _______, which represent data that will be supplied when the method is called. - AnswerParameters Once a class has been declared, we can create objects that belong to the class. We say that these objects are ______ of the class. - AnswerInstances An object variable doesn't actually store an object. Instead, it stores a ______ to an object. - AnswerReference The keyword ______ is placed

Show more Read less
Institution
Java
Course
Java








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Java
Course
Java

Document information

Uploaded on
January 14, 2025
Number of pages
2
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

©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

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Brightstars Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
185
Member since
1 year
Number of followers
7
Documents
11829
Last sold
1 hour ago
VERIFIED EXAMS AND STUDY GUIDES.

Here, you will find Study Notes, Exam answer packs 100% Guarenteed success.

3.3

29 reviews

5
9
4
4
3
8
2
3
1
5

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions