Q15. An abstract method ____. a. is any method in the abstract class b. cannot b
ID: 3722404 • Letter: Q
Question
Q15. An abstract method ____.
a. is any method in the abstract class
b. cannot be inherited
c. has no body
d. is found in a subclass and overrides methods in a superclass using the reserved word abstract
Q16. An abstract class can define ____.
a. only abstract methods
b. only non-abstract methods
c. abstract and non-abstract methods
d. only abstract instance variables
Q17. A subclass can directly access protected members of a superclass.
a. true
b. false
Q18. If in the heading of a catch block you declare an exception using the class Exception, then that catch block can catch all types of exceptions because the class Exception is the superclass of all exception classes.
a. true
b. false
Explanation / Answer
Question 15
An abstract method is a method that is declared without an implementation.
Hence, option c)
Question 16
Option c)
Question 17
Option a)
Question 18
The Throwable class is the superclass of all errors and exceptions in the Java.
Hence, option b)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.