Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CMSC 131 Final Exam Spring (All Correctly Answered)

Rating
-
Sold
1
Pages
16
Grade
A+
Uploaded on
21-09-2023
Written in
2023/2024

What two things make up an object? correct answers State and Behavior What is the State of an object? correct answers Data that the object maintains/holds Ex: (Bank Account) - balance, account number, interest amount, account type etc Behavior of an object? correct answers Things the object can do Ex: (Bank Account) - giveMeMoney, acceptDeposits, getBalance etc What represents a state of an object? correct answers Instance Variables Ex: (Student Class) Public int IdNum; Public String name; What represents a behavior of an object? correct answers Instance Methods Ex: (Student Class) Public void spendToken() { tokenLevel--; } Define the Stack? correct answers Simple linear date type in which elements are both inserted (pushed) and removed (popped) from the same end. They are pushed or popped from the top. Define the Heap correct answers Region in memory where objects, class variables, and instance variables are stored. When they are no longer used, they are "recycled" automatically What are Reference Variables? correct answers Stores the memory address of an object. We say that the variable "refers" to the object. Example: String s = new String ("Cat"); The variable s is held in the stack and it refers to the location in the heap where "Cat" is stored. What is aliasing? correct answers Having more than one reference variable that refers to the same object. Example: String q = new String("Cat"); String r = q; They are both referencing to the object q, "Cat". So, r == q; is correct because it's point to the location where q is stored.

Show more Read less
Institution
CMSC 131
Course
CMSC 131










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

Written for

Institution
CMSC 131
Course
CMSC 131

Document information

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

Subjects

CA$16.91
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

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.
SirAnton NURSING, ECONOMICS, MATHEMATICS, BIOLOGY, AND HISTORY MATERIALS BEST TUTORING, HOMEWORK HELP, EXAMS, TESTS, AND STUDY GUIDE MATERIALS WITH GUARANTEED A+ I am a dedicated medical practitioner with diverse knowledge in matters
Follow You need to be logged in order to follow users or courses
Sold
770
Member since
3 year
Number of followers
438
Documents
38480
Last sold
1 day ago
Reign Supreme Scholarly || Enlightened.

Get your revised study materials available here and elevate your educational outcomes. I have numerous verified learning materials (Research, Exams Questions and answers, Assignments, notes etc) for different courses guaranteed to boost your academic results. I am dedicated to offering you the best and unique learning content. You are encouraged to inquire further assistance from this end whenever need be. Kindly remember to leave your review, understanding your satisfaction is essential . We highly appreciate clients who always come back for more of the study content we offer, you are extremely valued. All the best.

Read more Read less
3.7

115 reviews

5
49
4
20
3
22
2
8
1
16

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