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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!