title: new instance of the class in java main method
body: <p>I am new to <code>java</code>, I was wondering why I need to create a new instance of the class to use its <code>non-static methods</code> in the <code>main method</code> but not in the other methods like the following </p>
  
  <pre><code>public class Test {
  
  
  public  void test(){
      System.out.println("test");
  }
  public static void main(String args[]){
  
      test(); // error Cannot make a static reference to the non-static method test() from the type Test
  }
  public void tst(){
      test();  // no errors
  }
  
  }
  </code></pre>