Exam 11: Advanced Inheritance Concepts
Exam 1: Creating Your First Java Classes76 Questions
Exam 2: Using Data81 Questions
Exam 3: Using Methods, Classes and Objects79 Questions
Exam 4: More Object Concepts84 Questions
Exam 5: Making Decisions80 Questions
Exam 6: Looping77 Questions
Exam 7: Characters, Strings and the Stringbuilder82 Questions
Exam 8: Arrays77 Questions
Exam 9: Advanced Array Concepts80 Questions
Exam 10: Introduction to Inheritance78 Questions
Exam 11: Advanced Inheritance Concepts78 Questions
Exam 12: Exception Handling79 Questions
Exam 13: File Input and Output78 Questions
Exam 14: Introduction to Swing Components79 Questions
Exam 15: Using Javafx and Scene Builder65 Questions
Select questions type
What is the toString() method used for and how is it used?
Free
(Essay)
4.8/5
(37)
Correct Answer:
The Object class toString() method converts an Object into a String that contains information about the Object . If you do not create a toString() method that overrides the version in the Object class, you can use the superclass version of the method.
A(n) ____ is not an object, but it points to a memory address.
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
B
In other programming languages, such as C++, abstract classes are known as ____ classes.
Free
(Multiple Choice)
4.8/5
(40)
Correct Answer:
D
Which of the following statements creates an array of three Animal references?
(Multiple Choice)
4.7/5
(29)
When you create a superclass and one or more subclasses, each object of each subclass is a subclass object.
(True/False)
4.9/5
(36)
Match each term with the correct statement below.
Premises:
Prohibited in Java
Responses:
JAR file
anonymous inner class
dynamic method binding
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(35)
A class that will be placed in a nondefault package for others to use must be private .
(True/False)
4.9/5
(29)
When a class both extends and implements , by convention the ____ clause follows the keyword extends in the class header.
(Multiple Choice)
4.8/5
(39)
If you create an empty method within an abstract class, the method is abstract even if you do not explicitly use the keyword abstract.
(True/False)
4.8/5
(34)
When you create a new subclass in Java, neither the superclass source code nor the superclass ____ is changed.
(Multiple Choice)
4.8/5
(32)
Match each term with the correct statement below.
Premises:
The name given to abstract classes in other programming languages, such as C++
Responses:
hash code
lambda expression
virtual classes
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(33)
A(n) ____ class is a class that you create only to extend from.
(Multiple Choice)
4.8/5
(47)
In the Java programming language, a package or class library is often delivered to users as a(n) ____ file.
(Multiple Choice)
5.0/5
(32)
When you show abstract classes and methods in class diagrams, their names appear in ____.
(Multiple Choice)
4.8/5
(30)
When you create a class and use the implements clause to implement an interface but fail to code one of the interface's methods, the compiler error generated indicates that you must declare your class to be ____.
(Multiple Choice)
4.8/5
(35)
If you do not specify a package for a class, it is placed in an unnamed ____ package.
(Multiple Choice)
4.8/5
(41)
____ is a calculated number that is used to uniquely identify an object.
(Multiple Choice)
4.9/5
(34)
The shaded header of the talkingAnimal() method accepts any type of Animal argument. Explain how this is possible.

(Essay)
4.9/5
(32)
Match each term with the correct statement below.
Premises:
Allows object instantiation
Responses:
lambda expression
nonabstract method
concrete class
Correct Answer:
Premises:
Responses:
(Matching)
4.7/5
(41)
Match each term with the correct statement below.
Premises:
Considers two objects of the same class to be equal only if they have the same hash code
Responses:
java.lang
virtual classes
dynamic method binding
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(37)
Showing 1 - 20 of 78
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)