title: How to keep a variable value even after doing run as-> Java Application?
body: <p>I know that when we use static variables the value remains the same for all the instances of a class. </p>
  
  <p>But when I do run as -> Java Application in a class, even the static variable is reinicialized with the default value.</p>
  
  <p>Is there any way to keep a variable value even after doing run as-> Java Application in a class?</p>
  
  <p>Thank you.</p>