Java II Chapter 11: Advanced Inheritance Concepts-
Questions and Answers| Latest Update
Classes, such as the String class, have their own equals()methods that overload the ____ class
method.
a. Object
b. Public
c. Abstract
d. Child
REFERENCES:
559 ✔️✔️a. Object
Java's Object class contains a public method named ____ that returns an integer representing
the hash code.
a. length()
b. hashCode()
c. hcode()
d. toString()
REFERENCES:
559 ✔️✔️b. hashCode()
If Java did not allow you to ____ classes, you would need to create every part of a program
from scratch.
a. extend
b. override
c. abstract
d. import
REFERENCES:
, 564 ✔️✔️a. extend
When you create a new subclass in Java, neither the superclass source code nor the superclass
____ is changed.
a. bytecode
b. object
c. argument
d. possession
REFERENCES:
565 ✔️✔️a. bytecode
The capability to inherit from more than one class is called ____.
a. multiple inheritance
b. collision
c. polyinheritance
d. dynamic method binding
REFERENCES:
565 ✔️✔️a. multiple inheritance
A(n) ____ looks much like a class, except that all of its methods (if any) are implicitly public
and abstract.
a. hash code
b. package
c. collision
d. interface
REFERENCES:
566 ✔️✔️d. interface
Questions and Answers| Latest Update
Classes, such as the String class, have their own equals()methods that overload the ____ class
method.
a. Object
b. Public
c. Abstract
d. Child
REFERENCES:
559 ✔️✔️a. Object
Java's Object class contains a public method named ____ that returns an integer representing
the hash code.
a. length()
b. hashCode()
c. hcode()
d. toString()
REFERENCES:
559 ✔️✔️b. hashCode()
If Java did not allow you to ____ classes, you would need to create every part of a program
from scratch.
a. extend
b. override
c. abstract
d. import
REFERENCES:
, 564 ✔️✔️a. extend
When you create a new subclass in Java, neither the superclass source code nor the superclass
____ is changed.
a. bytecode
b. object
c. argument
d. possession
REFERENCES:
565 ✔️✔️a. bytecode
The capability to inherit from more than one class is called ____.
a. multiple inheritance
b. collision
c. polyinheritance
d. dynamic method binding
REFERENCES:
565 ✔️✔️a. multiple inheritance
A(n) ____ looks much like a class, except that all of its methods (if any) are implicitly public
and abstract.
a. hash code
b. package
c. collision
d. interface
REFERENCES:
566 ✔️✔️d. interface