title: android java: Why i can access some public fields and can't access other?
body: <p>I don't understand, i look the code of WindowManager.java and i can see :</p>
  
  <pre><code>public interface WindowManager extends ViewManager {
  
      public static class LayoutParams extends ViewGroup.LayoutParams
              implements Parcelable {
  
          /**
           * Control flags that are private to the platform.
           * @hide
           */
          public int privateFlags;
  
          /**
           *
           * @see Gravity
           */
          public int gravity; 
  
       }
  }
  </code></pre>
  
  <p>Why i can access the field gravity but can't access the field privateFlags ? The declaration of both fields seem similar so why i can't ?</p>