调用 java GC

package com.jim;

/**
 * Created by zj on 15/12/2.
 */
public class Demo {
    public void say(){
        System.gc();
        System.out.println("你索啊--------------------");
        Demo.this.say();
    }

    public static void main(String[] args) {
        Demo e= new Demo();
        e.say();
    }
}

 

posted @ 2015-12-02 15:24  wind90  阅读(173)  评论(0编辑  收藏  举报