title: How <T> is dealing here with String and Integer
body: <p>I am not able to understand how T is taking Integer and String. As here in display function T is dealing with both Integer and String. How this code is working?</p>
  
  <pre><code>class firstBase {
     &lt;T&gt; void display(T give_num, T give_String) {
          System.out.println("The given number is = " 
                             + give_num + " The given String is  =  " + give_String);
  
          System.out.println("The class of given number is = " 
                             + give_num.getClass() + 
                             " The class of given_String is = "+give_String.getClass());
      }
   }
  
  
  public class testanonymous {
      public static void main(String[] args) {
          firstBase fb = new firstBase();
          fb.display(100, "xyz");
      }
  }
  </code></pre>