Real life examples of where java interfaces are necessary? : <p>I have been searching for an answer for a while so I am sorry if this has already been answered. </p>

<p>I am confused as to why inheriting empty method stubs from an interface is considered so useful in java? Is this something that is mainly used in bigger projects that i need to try to understand? Because although I know all the syntax and characteristics of interfaces, I cannot find uses for them when I am programming. I have tried to read as much as I can but this is a concept that I cannot get to 'click' in my head and I feel it is holding me back.</p>

<p>Or perhaps it is just case of good software design and I need to use them in certain scenarios whether I feel I need to or not?</p>

<p>If someone could point me in the direction of some code or preferably a project for me to do where interfaces are imperative that would be much appreciated.</p>
