title: Java : Is it possible to access private static method
body: <p>Is it possible to access the private static method within the object creation scope? Something like the below snippet.</p>
  
  <pre><code>class A {
     private static void func(int x) {
        /*Some Code here*/
     }
  }
  </code></pre>
  
  <p>and call from another context, something like this :</p>
  
  <pre><code>new A(){{
    func(2);
  }};
  </code></pre>
  
  <p>The intent here is to facilitate for addition of more calls to <code>func(int)</code>, with a differnt argument for each call, or to put simpler, some sort of builder for the object of type <code>A</code>.</p>
  
  <p>Something like this :</p>
  
  <pre><code>new A() { {
      func(2);
  }
  {
      func(3);
  }
  // ...
  };
  </code></pre>
  
  <p>Is this possible to achieve ? </p>