• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

CMSC132 Final study PT A(Correct answers)

Document preview thumbnail
Preview 2 out of 8 pages

What is an "instance" member? correct answers a member that belongs to an Instance of an object What is a "static" member? correct answers member that belongs to the class itself and does not require an instance of an object True/False: a. A class can implement numerous interfaces. b. Interfaces are useful for inheritance. c. Interfaces are useful for polymorphism. d. A class implementing an interface must implement... i. The public methods in the interface. ii. Methods in the interface that are not implemented in other classes iii. All methods in the interface. e. You cannot instantiate an interface directly. f. An interface can be used as a type for a variable. g. An interface can be used as the type for a "polymorphic collection". correct answers a. T b. F c. T d. i. T ii. F iii. F e. T f. T g. T Give an example of autoboxing. correct answers Integer a = 7; 7. Give an example of auto-unboxing. correct answers Integer x = new Integer(7); int y = x + 2; Write a statement that creates an empty ArrayList of String references using generic notation correct answers ArrayListString list = new ArrayList(); What is data abstraction? correct answers only the essential details are displayed to the user. The trivial or the non-essentials units are not displayed. Achieved by interfaces and abstract classes. Hide what data structures are used What is procedural abstraction? correct answers each method has a coherent conceptual description that separates its implementation from its users. Methods are encapsulated What is encapsulation? correct answers Surrounding something, not just to keep the contents together, but also to protect those contents. Restricts access to the inner


Document information

Uploaded on
May 29, 2024
Number of pages
8
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$11.79

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

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.
Sold
23
Followers
6
Items
4026
Last sold
1 month ago




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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

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