* The function that is running, no exit can not take effect, such as the new `System.out.println` added below, only the `run()` function will take effect.
```java
public class MathGame {
public static void main(String[] args) throws InterruptedException {
MathGame game = new MathGame();
while (true) {
game.run();
TimeUnit.SECONDS.sleep(1);
// This doesn't work because the code keeps running in while
System.out.println("in loop");
}
}
public void run() throws InterruptedException {
// This works because the run() function ends completely every time
<spanid="offline-help-documentation"></span><h2>Offline Help Documentation<aclass="headerlink"href="#offline-help-documentation"title="Permalink to this headline">¶</a></h2>
<p>Latest Version, Click To Download:<aclass="reference external"href="http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.taobao.arthas&a=arthas-packaging&e=zip&c=doc&v=LATEST"><imgalt="Arthas"src="https://img.shields.io/maven-central/v/com.taobao.arthas/arthas-packaging.svg?style=flat-square"/></a></p>
<p>Latest Version, Click To Download:<aclass="reference external"href="https://github.com/alibaba/arthas/releases/download/arthas-all-3.0.5/arthas-3.0.5-doc.zip"><imgalt="Arthas"src="https://img.shields.io/maven-central/v/com.taobao.arthas/arthas-packaging.svg?style=flat-square"/></a></p>
</div>
<divclass="section"id="uninstall">
<spanid="uninstall"></span><h2>Uninstall<aclass="headerlink"href="#uninstall"title="Permalink to this headline">¶</a></h2>
<spanid="restrictions-of-the-redefine-command"></span><h2>Restrictions of the redefine command<aclass="headerlink"href="#restrictions-of-the-redefine-command"title="Permalink to this headline">¶</a></h2>
<ul>
<li><pclass="first">New field/method is not allowed</p>
</li>
<li><pclass="first">The function that is running, no exit can not take effect, such as the new <ttclass="docutils literal">System.out.println</tt> added below, only the <ttclass="docutils literal">run()</tt> function will take effect.</p>
<divclass="highlight-java notranslate"><divclass="highlight hljs"><preclass="java">public class MathGame {
public static void main(String[] args) throws InterruptedException {
MathGame game = new MathGame();
while (true) {
game.run();
TimeUnit.SECONDS.sleep(1);
// This doesn't work because the code keeps running in while
System.out.println("in loop");
}
}
public void run() throws InterruptedException {
// This works because the run() function ends completely every time