title: How to access private class inside a static nested class
body: <pre><code>class Sample{
         static class Inner{
            private class Private{
                private void print(){
                   System.out.println(&quot;accessed&quot;);
                }
            }
         }
        public static void main(String[] args){
          #access the print() method from here
  }}
  </code></pre>
  <p>Here How can I access the private class from the main() method.I can initialize static class object,after that how to initialize the private class?</p>