Question: 1.In the following code: public interface Shape extends Comparable { double getArea(); } We have: Select one: a. Three interfaces b. One interface that extends
1.In the following code:
public interface Shape extends Comparable
double getArea();
}
We have:
Select one:
a.
Three interfaces
b.
One interface that extends two classes
c.
Two classes and one interface
d.
One interface that implements another interface
2.
Java allows extending and implementing multiple classes and interfaces through a single class declaration statement such as:
public abstract class Car implements Cloneable, Comparable
//code goes here
} ture or false.
3.
The statement: public abstract class Person
means that all methods in Person must be abstract. true or false.
4.
In the following statement:
public abstract class Vehicle extends DD implements Car{ . . . }
Vehicle must implement all non-default methods in Vehicle
true of false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
