title: Overloading a private method in Java
body: <p>I want to get this thing straight:  does overloading apply to methods in sub/super classes, or only to methods of one class can be overloaded?</p>
  
  <pre><code>public class Super{
  
       private void method(){
       }
  }
  
  class Sub extends Super{
  
       private void method(){ 
       }
       private void method(int x){    
       }  
  }
  </code></pre>
  
  <p>Are both methods of Sub legally overloaded? Is the method of Super overloaded as well?</p>