Byte class is not working in Generics in java
<p>My code is:-</p>

<pre><code>class abc&lt;T&gt; {
    T a, b;
    abc(T p, T q) {
        a = p;
        b = q;
    }
    void disp() {
        System.out.println("\na = " + a);
        System.out.println("b = " + b);
        System.out.println("a/b is of class type : " + a.getClass().getName());
    }
}

class temp {
    public static void main(String...args) {
        abc&lt;Integer&gt; a1;
        a1 = new abc &lt;Integer&gt;(11, 22);
        abc&lt;Byte&gt; a2 = new abc &lt;Byte&gt;(50,5);
        a1.disp();
        a2.disp();
    }
}
</code></pre>

<p>OUTPUT:-</p>

<pre><code>temp.java:23: cannot find symbol
symbol  : constructor abc(int,int)
location: class abc&lt;java.lang.Byte&gt;
            abc &lt;Byte&gt; a2 = new abc &lt;Byte&gt; (50,5);
                            ^
1 error
</code></pre>

<p>Please help me out in this question. I am new to java, so learning about generics.</p>

<p>In this code wen I used Integer, Float, Double, String all were working fine but when I get to Byte class the compiler throws an error. </p>
