Question
Answer each part TRUE or FALSE: a. All methods in an abstract class must be abstract. b. An abstract class may provide constructors. c. An
Answer each part TRUE or FALSE:
a. All methods in an abstract class must be abstract. b. An abstract class may provide constructors. c. An abstract class can declare instance data.
d. An abstract class can extend another abstract class. e. An abstract class can extend a non-abstract class. f. An interface is an abstract class. g. An interface can declare instance data. h. Any method in an interface must be public. i. All methods in an interface must be abstract. j. An interface can have no methods at all. k. An interface can extend another interface. l. An interface can declare constructors. m. A class may extend more than one class. n. A class may implement more than one interface. o. A class may extend one class and implement one interface. p. An interface may implement some of its methods. q. Methods in an interface may provide a throws list. r. All methods in an interface must have a void return type. s. Throwable is an interface. t. Object is an abstract class. u. Comparable is an interface. v. Comparator is an example of an interface that is used for function objects.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started