9) put True/False a- ---------------- an abstract method can be declared in any
ID: 3576121 • Letter: 9
Question
9) put True/False
a- ---------------- an abstract method can be declared in any class.
b- ---------------- an abstract method MUST be overridden in a subclass.
c- ---------------- a final class can be extended by any class.
d- ---------------- generic methods are only allowed within abstract classes.
e- ---------------- a subclass can extend as many classes as it chooses.
f- ----------------- a subclass can implement as many interfaces as it chooses.
g- ---------------- all methods in an abstract class must be abstract.
h- ----------------- all methods in an interface must be abstract.
i- ----------------- one interface can extend another interface.
j- ---------------- all Java classes directly or indirectly inherit the public String toString( ) method.
Explanation / Answer
a- False(The abstract method must be defined in abstract class only)
b- True
c- False(You cann't extend a class that is declared as final)
d- False
e- True
f- True
g- False(The abstract class contain both abstract methods and concrete methods)
h- True
i- False
j- True.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.