Styrow.dev
Question 183 of 247
Java Topic: General medium

Do interfaces have member variables?

Question

Do interfaces have member variables?

Answer

Interfaces may have member variables, but these are implicitly public, static, and final- in other words, interfaces can declare only constants, not instance variables that are available to all implementations and may be used as key references for method arguments for example.