Answer each part true or false with reason all methods in


Question: Answer each part TRUE or FALSE with reason:

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.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Answer each part true or false with reason all methods in
Reference No:- TGS02457364

Now Priced at $15 (50% Discount)

Recommended (92%)

Rated (4.4/5)