title: Scope of static methods in Java
body: <p>What is the scope of a static method in Java?</p>
  
  <pre><code>1) (Eclipse) Project level
  2) Application level
  3) JVM level
  </code></pre>
  
  <p>To give you insight into what I'm asking, if we have a class:</p>
  
  <pre><code>public class MyClass
  {
     private static int data;
     public static void setData(int val)
     {
         data = val;
     }
     public static int getData()
     {
         return data;
     }
  }
  </code></pre>
  
  <p>And if I make a call to the <code>setData()</code> method from a different class (in the same project as <code>MyClass</code>) and pass a value, say 10, will I be able to access the set <code>data</code> (i.e. value 10) from a different project? from a different application? etc-</p>
  
  <p>Alternatively, what exactly would I need to do to be able to access the same <code>data</code> (i.e. 10) from a different (eclipse) project?</p>
  
  <p>If there is official documentation regarding this, please do let me know.</p>