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)

CSE 205 UPDATED Exam Questions and CORRECT Answers

Rating
-
Sold
-
Pages
12
Grade
A+
Uploaded on
20-08-2025
Written in
2025/2026

CSE 205 UPDATED Exam Questions and CORRECT Answers wrapper class - CORRECT ANSWER IInt() inheritance - CORRECT ANSWER - object class for a primitive, in package, - supports software reuse, parent class (super class/ base class) and child class (sub class), child classes can inherit public or protected variables and methods, extends, super (call parent constructor and methods), is relationship, (triangle in UML) protected visibility modifier - CORRECT ANSWER by any class in the same package (# in UML) public visibility modifier - CORRECT ANSWER anywhere (+ in UML) private visibility modifier - CORRECT ANSWER multiple inheritance - CORRECT ANSWER - can be inherited, can be accessed

Show more Read less
Institution
CSE 205
Course
CSE 205

Content preview

CSE 205 UPDATED Exam Questions and
CORRECT Answers
wrapper class - CORRECT ANSWER - object class for a primitive, in java.lang package,
Integer.parseInt()


inheritance - CORRECT ANSWER - supports software reuse, parent class (super class/
base class) and child class (sub class), child classes can inherit public or protected variables and
methods, extends, super (call parent constructor and methods), is relationship, (triangle in UML)


protected visibility modifier - CORRECT ANSWER - can be inherited, can be accessed
by any class in the same package (# in UML)


public visibility modifier - CORRECT ANSWER - inherited, can be accessed from
anywhere (+ in UML)


private visibility modifier - CORRECT ANSWER - not inherited (- in UML)



multiple inheritance - CORRECT ANSWER - not in java, multiple parent classes



overriding - CORRECT ANSWER - child redefines an inherited method, method with
final cannot be overridden, methods in different classes, different object types


final - CORRECT ANSWER - variables, methods, and classes can be final, String class is
final


overloading - CORRECT ANSWER - multiple methods with the same name in the same
class but different parameters

, abstract class - CORRECT ANSWER - no instantiated objects, contains one or more
abstract methods, can contain non-abstract methods, child class has to define abstract methods,
italic in UML


abstract method - CORRECT ANSWER - method header without a method body, cannot
be final or static, can be in a non-abstract class, italic in UML, ends in semicolon


class hierarchies - CORRECT ANSWER - ex) bat inherits from mammal and animal



widening conversion - CORRECT ANSWER - assigning a predecessor object to an
ancestor reference. ex)bat can be of type mammal


narrowing conversion - CORRECT ANSWER - assigning an ancestor object to a
predecessor reference. Requires a cast. ex)if bat was declared as a mammal, saving it as a bat
requires a cast


designing for inheritance - CORRECT ANSWER - inheritance relationships affect
elegance, maintainability, and reuse of software, is-a relationship, put common characteristics
higher in hierarchy, override methods as appropriate (always toString and equals), don't redefine
inherited variables (shadow or overshadow), allow each class to manage its own data(super), use
abstract classes to represent general concepts used several times, use visibility modifiers
appropriately


designing software - CORRECT ANSWER - take time to create, less time to maintain



restricting inheritance - CORRECT ANSWER - final restricts inheritance, abstract cannot
be final, key design decision


polymorphic reference - CORRECT ANSWER - reference variable that can refer to
different types of objects at different points in time, resolved in run-time, uses the same method
name but call different classes in the hierarchy

Written for

Institution
CSE 205
Course
CSE 205

Document information

Uploaded on
August 20, 2025
Number of pages
12
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.49
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

Thumbnail
Package deal
CSE 205 Bundled Exam Questions WITH CORRECT Answers
-
25 2025
$ 118.89 More info

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.
MGRADES Stanford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1459
Member since
2 year
Number of followers
105
Documents
97742
Last sold
22 hours ago
MGRADES

Welcome to MGRADES ,Based at Stanford University in California. I guarantee success and you may end up coming back again and again. We do this for you . We offer the best study and exam materials for a wide range of courses and units. Make your study sessions more efficient and effective. Dive in and discover all you need to excel in your academic journey!

3.8

235 reviews

5
97
4
50
3
53
2
15
1
20

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