100% satisfaction guarantee Immediately available after payment Read online or as PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

CMSC 132 Exam review(Accurately solved)

Rating
-
Sold
-
Pages
23
Grade
A+
Uploaded on
29-05-2024
Written in
2023/2024

What do you find in a java interface? correct answers method prototypes, final static variables, static methods (note: instance methods are ok if you use the term 'default'). The classes that implement an interface must implement ___________ correct answers Instance methods from interface (note: default instance method does not need to be implemented, it has already been inherited). When should you use the key word 'Override'? correct answers When you are implementing a method from an interface. If there is default implementation of a method you can use override to implement it differently. (reminder: if it is already implemented in the interface, you do not need to implement it in a different class because it has already inherited it). (T/F) - You can add other code to the classes that inherit the superclass features aside from the interface method implementations. correct answers TRUE (T/F) you cannot create polymorphic collections correct answers FALSE What does API stand for and what is it? correct answers Application Programming Interface, the API is part of a model that are exposed to the user (public features). For example, when you write projects you use the String class, it has an API which are the features from that class available to users. Overall in an API you find public variables, public methods, and the contracts of the methods. What did Fawzi mention is important to remember in regards to the API? correct answers When changing code, make sure to leave the API the same so the outside user doesn't have anything to worry about. What is encapsulation? correct answers Hiding something in a private shell, in order to access private members they use public methods. What are the 2 types of encapsulation? What do they each mean? correct answers data encapsulation - make the data private procedural encapsulation - switching out an algorithm behind the scenes and no user will know (rule of thumb: encapsulate what may change later). Why do the wrapper classes exist? correct answers In order to make collections of these values. Collections can only collect objects, not primitives. (T/F) all the wrapper classes are immutable. correct answers TRUE. You cannot change the state of the object. Which declaration is correct? a) Integer x = new Integer(7);

Show more Read less
Institution
CMSC 132
Module
CMSC 132










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

Written for

Institution
CMSC 132
Module
CMSC 132

Document information

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

Subjects

£13.55
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Read online or as PDF
No strings attached


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.
Insightfulsh3rry 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
20
Member since
2 year
Number of followers
6
Documents
4026
Last sold
1 month ago
Insightful Academy.

On this page,we offer a wide selection of revised study materials that guarantee success in your studies and different courses,latest exam updates,assignments,questions and solved answers you will find them all here. For more inquiries dont hesitate to contact us for assistance! Leave us a review after purchase so we can understand our clients . Wishing you all the best in your studies.

3.5

2 reviews

5
0
4
1
3
1
2
0
1
0

Trending documents

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 exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions