title: Accessing private field in Java
body: <p>I don't understand why I can access the <code>private int i</code> outside of the class while it's private.</p>
  
  <pre><code>public class Fish {
  
      private int i = 1;
  
      public static void main(String[] args) {
          Fish k = new Fish();
          k.i = 2; // it IS possible
      }
  
  }
  </code></pre>