title: Difference between public static and private static variables
body: <pre><code>class Employee{
   // salary  variable is a private static variable
  private static double salary;
  
  // DEPARTMENT is a constant
   public static final String DEPARTMENT = "Development";
  
  public static void main(String args[]){
     salary = 1000;
    System.out.println(DEPARTMENT+  "  average salary:"+salary);
  }
  }
  </code></pre>
  
  <p>This java program contains a static variable. But I cannot understand the difference between public and private static variables.</p>