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 questions and answers well illustrated.

Rating
-
Sold
-
Pages
2
Grade
A
Uploaded on
12-09-2023
Written in
2023/2024

Java: Classes and Objects questions and answers well illustrated. Objects have two properties. One is state. What is the other? - correct answers.Behavior The state of an object is stored in _____ _____ - correct answers.Instance variables The behavior of an object is represented by ______ ______ - correct answers.Instance methods The job of a _____ is to initialize instance variables at the time an object is created. - correct answers.Constructor Nested inside a class declaration are three kinds of declarations. What are they? - correct answers.Constructor declarations Variable declarations Method declarations The words public and private are _____ _____ - correct answers.Access modifiers A method is allowed to have _______, which represent data that will be supplied when the method is called. - correct answers.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. - correct answers.Instances An object variable doesn't actually store an object. Instead, it stores a ______ to an object. - correct answers.Reference The keyword ______ is placed before a class name in order to create an object. - correct To perform an operation on an object, we _______ one of the instance methods associated with the object. - correct answers.Call How do you call an instance method - correct dname(arguments) Reference variables are known as _______ variables in other programming languages. - correct answers.Pointer What value can we assign to an object variable to indicate that it doesn't currently store an object? - correct A new object that's been created by copying an existing object is said to be a _______. - correct answers.Clone An object that's no longer accessible through any object variable is said to be _______. - correct answers.Garbage An instance method that returns the value of an instance variable is said to be an _______. - correct answers.Accessor/Getter An instance method that stores its parameter into an instance variable is said to be an ________. - correct answers.Mutator/Setter An object whose instance variables cannot be changed is said to be _______. - correct answers.Immutable A mehtod that returns the contents of an object as a string should be named ______. - correct String The act of joining two strings together to form a single string is called _______. - correct answers.Concatenation Which method is used to remove extra space from the beginning and end of a string? - correct What is the value of 11 + 38 + "THX"? - correct answers.49THX

Show more Read less
Institution
Java: Classes And Objects
Course
Java: Classes and Objects








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

Written for

Institution
Java: Classes and Objects
Course
Java: Classes and Objects

Document information

Uploaded on
September 12, 2023
Number of pages
2
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

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.
techgrades havard university
View profile
Follow You need to be logged in order to follow users or courses
Sold
300
Member since
2 year
Number of followers
101
Documents
12058
Last sold
20 hours ago
TECHGRADES

NURSING SCHOOL IS HARD AM HERE TO SIMPLIFY THE INFORMATION AND MAKE IT EASIER!! My mission is to be your light in the dark, if you are worried or having trouble in nursing school, i really want my notes to be your guide, stay with me and you will find everything you need to study and pass any tests, quizzes and exams! Assisting students with quality work is my first priority. I know how frustrating it can get with all those assignments mate! I have essential guides that are A graded. Get verified solutions from TECHGRADES.

Read more Read less
4.0

68 reviews

5
37
4
7
3
16
2
4
1
4

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