清理内存

 /**
     * 清理内存
     */
    public synchronized static void clearMem()
    {
        try
        {
            Method method = System.class.getMethod("gc");
            method.invoke(null);
        }
        catch (Exception ex)
        {
        }
    }

你可能感兴趣的:(exception,null)