 <p>Java interfaces cannot have instance variables. If having them seems really appropriate to you, perhaps you should consider using <a href="https://docs.oracle.com/javase/tutorial/java/IandI/abstract.html" rel="nofollow">an abstract class</a> instead (or in addition) to an interface.</p>