title: How the private properties of inner class are accessed from outside class?
body: <p>I have read this concept in respect to static inner class : ViewHolder declared as inner class inside the adapter of ListView to enhance the performance of getView().</p>
  
  <p>Consider the below class</p>
  
  <pre><code>public class OuterClass{
  
      public class InnerClass{
          private int privateProperty= -2;
      }
  
      public static void main(String[] args) {
          OuterClass oc = new OuterClass();
          InnerClass ic = oc.new InnerClass();
          ic.privateProperty = -98;
      }
  }
  </code></pre>
  
  <p>If inner class contains private properties and an object of inner class is created inside a method of outer class then the inner class private properties can be accessed directly using . 'dot' operator. </p>
  
  <p>I have read somewhere that the private properties of the inner class are accessed using synthetic setter getter methods from outer class</p>
  
  <p>I want to clear my concept regarding the same.</p>