?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Moderate

Definition of a Java interface

APCSA-GTAYWY

Which of the following is a TRUE statement about a Java interface?

A

An interface is a method that is empty.

B

An interface is similar to a class but its methods either contain no code or they are static.

C

An interface is an abstract class and an abstract class is an interface.

D

An interface is the connection between a method and its interaction to its class.

E

An interface is an abstract class that contains abstract methods as well as other static and non-static methods.