title: How to run a Java program multiple times without JVM exiting?
body: <p>Suppose I have a Java program <code>Test.class</code>, if I used the below script</p>
  
  <pre><code>for i in 1..10
  do
      java Test
  done
  </code></pre>
  
  <p>the JVM would exit each time <code>java Test</code> is invoked.</p>
  
  <p>What I want is running <code>java Test</code> multiple times without exiting the JVM, so that, the optimized methods in prior runs can be used by later runs, and possibly be further optimized.</p>