title: Can i declare a static variable inside static member function in Java?
body: <pre><code>private static int Fibonoci(int n) {
  static int first=0;
  static int second=1;
  static int sum;
  if(n&gt;0)
  </code></pre>
  
  <p>i am getting a error "Illegal Modifier" and if i remove static keyword there is no error and i need those variables to be static </p>