Question: Select all true statements about the Java keyword interface. Question 2 1 options: Every method in an interface is abstract . Interfaces are used to

Select all true statements about the Java keyword "interface".
Question 21 options:
Every method in an interface is abstract.
Interfaces are used to enforce commonality among the methods of a variety of different implementations.
Interfaces can be instantiated. In other words, "new" can be used to create a new object of the type of the interface.
If I have an interface named Container that I want a Box class to implement, I'd write "public class Box extends Container"
If I'm creating an interface named Container, the first line of Container.java would be "public interface Container"

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 Programming Questions!