10.7 Q2: All of the following methods are implicitly final except:
a. a method in an abstract class.
b. a private method.
c. a method declared in a final class.
d. static method.
10.7 Q3: Declaring a method final means:
a. it will prepare the object for garbage collection.
b. it cannot be accessed from outside its class.
c. it cannot be overloaded.
d. it cannot be overridden.
10.8 Q1: Which of the following is false?
a. You should not call overridable methods from constructors—when creating a
subclass object, this could lead to an overridden method being called before the
subclass object is fully initialized.
b. It’s OK to any of a class’s methods from its constructors.
c. When you construct a subclass object, its constructor first calls one of the direct
superclass’s constructors. If the superclass constructor calls an overridable method,
the subclass’s version of that method will be called by the superclass constructor.
d. It’s acceptable to call a static method from a constructor.
10.9 Q1: In Java SE 7 and earlier, an interface may contain:
a. private static data and public abstract methods.
b. only public abstract methods.
c. public static final data and public abstract methods.
d. private static data and public final methods.
10.9 Q2: Which of the following does not complete the sentence correctly?