title: valueof method in class Integer
body: <p>We know that valueof method in Integer class is static. But when we call by an object of Integer class then it is not giving any error. ex: following code is running perfectly...</p>
  
  <pre><code>public class Test {
      public static void main(String[] args)
      {
  
          Integer i=new Integer(5);
          System.out.println(i.valueOf(i));
      }
  }
  </code></pre>