title: How to call private method by other methods?
body: <p>I am confused of calling a private method by another method(public) belonging to the same <code>class.Once</code> I have been told I gotta create an object of that class and then call the private method via this object but in one of my questions in this forum I have been told that I dont need to use object.</p>
  
  <pre><code>public class Train() {
  
      private void method1{......method definition..... }
  
      public void method2{......how to invoke method1??}
  
  }
  </code></pre>
  
  <p>Can I simply call the first method inside the second method by using <code>method1();</code>  or should I invoke it by creating an object of the class and <code>Object_of_Train.method1();</code>.</p>
  
  <p>Which one should I use?</p>