How to interrupt an Infinite Loop
<p>Though I know it'll be a bit silly to ask, still I want to inquire more about the technical perspective of it.</p>

<p>A simple example of infinite loop:</p>

<pre><code>public class LoopInfinite{
public static void main(String[] args){
   for(;;)
       System.out.println("Stackoverflow");
   }
}
</code></pre>

<p>How can I interrupt(stop) this infinite loop from outside of this class (i.e. with the help of inheritance)?</p>
