Generic method in java
<pre><code>public class Stack&lt;T&gt; {
  public &lt;T&gt; T pop() throws Exception;
}
</code></pre>

<p>My question is that why i need <code>&lt;T&gt;</code> in  method <code>public &lt;T&gt; T pop() throws Exception</code>.
<br/>
Thank you very much.</p>
