Calling subclass's static method from parent class
<p>This is a strange question but I was wondering if there was a way to "override" a parent class's static method in a subclass and call that subclass's static method from the parent class. </p>

<p>It would look something like this</p>

<pre><code>public class parentFoo {
    public static void &lt;T extends parentFoo&gt; printFoo () {
        T.printFoo();
    }
}

public class childFoo extends parentFoo {
    public static void printFoo() {
        System.out.println("Foo");
    }
}
</code></pre>

<p>so you could do something like this in your code</p>

<pre><code> //print out "Foo"
 parentFoo.&lt;childFoo&gt;printFoo();
</code></pre>

<p>This isn't working for me but I was wondering if there is some way to make this possible. Right now I get a stack overflow because it only calls the parent class's printFoo method.</p>
