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
If a class has an abstract method, which of the following statements is NOT true?
(Multiple Choice)
4.9/5
(34)
Which of the following statements about abstract methods is true?
(Multiple Choice)
4.8/5
(42)
Consider the following code snippet:
Which of the following statements is correct?

(Multiple Choice)
5.0/5
(41)
The term for a class from which you cannot create objects is
(Multiple Choice)
4.9/5
(27)
Consider the following code snippet:
You wish to create a concrete subclass named PolisherHachine. Which of the following is the correct way to declare this subclass?

(Multiple Choice)
4.9/5
(32)
Consider the following class hierarchy:
Complete the code in this program snippet to correctly display the auto's type.

(Multiple Choice)
4.8/5
(32)
When the reserved word super is followed by a parenthesis, what does it indicate?
(Multiple Choice)
4.8/5
(38)
Consider the following code snippet:
Which of the following statements is NOT correct?

(Multiple Choice)
4.7/5
(43)
Consider the following class hierarchy:
Complete the code in the Auto class method named displayAutoType to return the type data.

(Multiple Choice)
4.9/5
(43)
To test whether an object belongs to a particular type, use
(Multiple Choice)
4.9/5
(40)
All rodents are mammals and all canines are mammals.No canines are rodents and no rodents are canines.What hierarchy best captures this information?
(Multiple Choice)
4.9/5
(37)
Insert the missing code in the following code fragment.This fragment is intended to call the Vehicle class's method.

(Multiple Choice)
4.8/5
(34)
Consider the following code snippet, which is meant to override the equals() method of the Object class:
What is wrong with this code?

(Multiple Choice)
4.8/5
(38)
Consider the following code snippet:
Assume that the Auto class inherits from the Vehicle class, and neither class has an implementation of the toString() method.Which of the following statements is correct?

(Multiple Choice)
4.8/5
(35)
Consider the following class hierarchy:
Complete the code in the Auto class constructor to store the type data.

(Multiple Choice)
4.9/5
(39)
Showing 61 - 80 of 99
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)