Exam 11: Advanced Inheritance Concepts
Exam 1: Creating Java Programs68 Questions
Exam 2: Using Data74 Questions
Exam 3: Using Methods, Classes, and Objects68 Questions
Exam 4: More Object Concepts67 Questions
Exam 5: Making Decisions70 Questions
Exam 6: Looping72 Questions
Exam 7: Characters, Strings, and the Stringbuilder73 Questions
Exam 8: Arrays74 Questions
Exam 9: Advanced Array Concepts74 Questions
Exam 10: Introduction to Inheritance70 Questions
Exam 11: Advanced Inheritance Concepts70 Questions
Exam 12: Exception Handling65 Questions
Exam 13: File Input and Output74 Questions
Exam 14: Introduction to Swing Components74 Questions
Exam 15: Advanced Gui Topics69 Questions
Exam 16: Graphics74 Questions
Exam 17: Applets, Images, and Sound72 Questions
Select questions type
Match each term with the correct statement below.
-A class-naming conflict
Free
(Multiple Choice)
4.9/5
(45)
Correct Answer:
B
A good toString() method can be very useful in debugging a program.
Free
(True/False)
4.9/5
(35)
Correct Answer:
True
Match each term with the correct statement below.
-Contains the Object class
Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
G
Abstract classes and interfaces are similar in that you cannot instantiate concrete objects from either one.
(True/False)
4.8/5
(31)
What are the three ways in which you can compare abstract classes and interfaces?
(Essay)
4.9/5
(36)
Instead of using the automatic toString() method with your classes, it is usually more useful to write your own ____ version of the toString() method that displays some or all of the data field values for the object with which you use it.
(Multiple Choice)
4.8/5
(26)
Abstract classes and methods appear in ____ in a class diagram.
(Multiple Choice)
4.7/5
(38)
When you define a class, if you do not explicitly extend another class, your class is an extension of the ____ class.
(Multiple Choice)
4.9/5
(47)
The ___ method is useful in debugging a program because it can be used to display and examine values.
(Multiple Choice)
4.8/5
(31)
Which of the following statements creates an array of three Animal references?
(Multiple Choice)
4.9/5
(39)
If Java did not allow you to ____ classes, you would need to create every part of a program from scratch.
(Multiple Choice)
4.9/5
(34)
You sometimes create an abstract class only so you can ____ it to another class.
(Multiple Choice)
4.8/5
(36)
The Object class contains a(n) ____________________ method that takes a single argument, which must be the same type as the type of the invoking object.
(Short Answer)
4.8/5
(33)
When a superclass is abstract, you cannot instantiate objects of a superclass. How can you use a superclass abstract object?
(Essay)
4.9/5
(47)
The java.lang package contains the Object class and is imported automatically each time a program is written.
(True/False)
4.8/5
(30)
Match each term with the correct statement below.
-Prohibited in Java
(Multiple Choice)
4.9/5
(31)
Java's Object class contains a public method named ____ that returns an integer representing the hash code.
(Multiple Choice)
4.9/5
(41)
When you create classes for others to use, why would you not want to provide the users with your source code in the files with .java extensions?
(Essay)
4.9/5
(38)
Showing 1 - 20 of 70
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)