64.5k views
4 votes
An interface does not have ____.

A) return types

B) instance fields

C) abstract methods

D) public methods

User Yogibear
by
5.6k points

1 Answer

4 votes

Answer:

B - instance fields

Step-by-step explanation:

Fields/variables declared within interfaces are by default final, public or static and hence will not be considered as an instance variable/field but a class variable. Although interfaces can be used to define instance methods, they will never have instance variables.

User Tabetha
by
5.7k points