Exam 9: Inheritance
Exam 1: Introduction76 Questions
Exam 2: Using Objects82 Questions
Exam 3: Implementing Classes108 Questions
Exam 4: Fundamental Data Types124 Questions
Exam 5: Decisions119 Questions
Exam 6: Loops107 Questions
Exam 7: Arrays and Array Lists117 Questions
Exam 8: Designing Classes88 Questions
Exam 9: Inheritance99 Questions
Exam 10: Interfaces100 Questions
Exam 11: Input/Output and Exception Handling108 Questions
Exam 12: Object-Oriented Design104 Questions
Exam 13: Recursion99 Questions
Exam 14: Sorting and Searching100 Questions
Exam 15: The Java Collections Framework102 Questions
Exam 16: Basic Data Structures102 Questions
Exam 17: Tree Structures102 Questions
Exam 18: Generic Classes75 Questions
Exam 19: Stream Processing85 Questions
Exam 20: Graphical User Interfaces75 Questions
Exam 21: Advanced Input/Output90 Questions
Exam 22: Multithreading81 Questions
Exam 23: Internet Networking74 Questions
Exam 24: Relational Databases75 Questions
Exam 25: XML74 Questions
Select questions type
When declared as protected, which statement is true about the access to data in an object?
(Multiple Choice)
4.8/5
(40)
Consider the hierarchy of classes shown below.
What is the direct superclass of the class ScriptedShow?

(Multiple Choice)
4.8/5
(34)
Consider the following code snippet:
What does this code do?

(Multiple Choice)
4.7/5
(40)
Consider the following inheritance hierarchy diagram:
Which of the following statements is correct?

(Multiple Choice)
4.8/5
(25)
You are creating a Motorcycle class which is supposed to be a subclass of the Vehicle class.Which of the following class declaration statements will accomplish this?
(Multiple Choice)
4.8/5
(34)
Consider the following code snippet:
Which of the following statements is correct?

(Multiple Choice)
4.9/5
(36)
Which of the following statements about comparing objects is correct?
(Multiple Choice)
4.8/5
(35)
Consider the following code snippet:
Which of the following statements is correct?

(Multiple Choice)
4.9/5
(31)
All hamsters are rodents and all rodents are mammals.What hierarchy best captures this information?
(Multiple Choice)
4.9/5
(38)
Which of the following statements is true about using the reserved word super to call a superclass constructor?
(Multiple Choice)
4.8/5
(35)
In designing an inheritance hierarchy it is helpful first to list classes that are part of the hierarchy and then organize those classes via an inheritance diagram.Once this has been done, what is the next step in the design?
(Multiple Choice)
4.8/5
(37)
Insert the missing code in the following code fragment.This fragment is intended to call the Vessel class's method.

(Multiple Choice)
4.8/5
(37)
Which class represents a more specific entity in an inheritance hierarchy?
(Multiple Choice)
4.8/5
(35)
Consider the following class hierarchy:
What is wrong with this class hierarchy definition?

(Multiple Choice)
4.8/5
(43)
To ensure that an instance variable can only be accessed by the class that declared it, how should the variable be declared?
(Multiple Choice)
4.9/5
(42)
Consider the following code snippet:
Which of the following statements is correct?

(Multiple Choice)
4.8/5
(38)
Consider the following code snippet:
Which of the following statements is correct?

(Multiple Choice)
4.9/5
(48)
Showing 41 - 60 of 99
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)