- 博客(2)
- 资源 (2)
- 收藏
- 关注
原创 递归求和(Recursive)与for循环求和效率问题的简单比较
今天闲来无事,就简单测试了一下递归(Recursive)求和与for循环求和的效率package com.test;import junit.framework.TestCase;public class Recursive extends TestCase{ //测试递归求和 public void test(){ long begin=System.nanoTime(); System.out.println(sum(6000)); System.out.println(System.nanoTi
2011-02-24 11:15:00 1270
转载 java.lang.OutOfMemoryError: PermGen space及其解决方法
1、PermGen space的全称是Permanent Generation space,是指内存的永久保存区域OutOfMemoryError: PermGen space从表面上看就是内存益出,解决方法也一定是加大内存。说说为什么会内存益出:这一部分用于存放Class和Meta的信息,Class在被 Load的时候被放入PermGen space区域,它和和存放Instance的Heap区域不同,GC(Garbage Collection)不会在主程序运行期对PermGen space进行清理,所以如
2010-08-22 21:10:00 238
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人