判断一个内存泄漏的问题!!!! 有必要声明这末大的一个char数组吗?而且你的语法有错误! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 语法嘛就不用考虑了,关键是怎么处理.在资源快要枯竭的时候就是new char[100],也得判断啊!!!!!!!!!!! 用try{ }catch(Exception){ }分配失败会抛出违例 我尝试过try{char c=new char[200000000];}catch(Exception){ }catch不到这个exception啊! 这不是一个Exception而是一个Error,你catch这个Error就行了…… java.lang.OutOfMemoryErrorThrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector. thank all.给分!给分啊!!!! 关于 try 和 catch 代码块的小疑问?? 关于ognl表达式传参问题 Java菜鸟问个低级问题 急用! 如何覆盖toString方法 谁能帮我详细的解释下setXORMode该函数的用法啊? java 代码执行命令行 <<JAVA 语言导学>>电子版下载,第一个给对正确地址得100分! 请问一个jar运行方式的问题,高手进来看? 5分钟,得100分,来者有分 请教一个关于java多线程的问题 有没有谁知道哪里有jdbc driver for sqlserver2000(当然是说免费而功能完全的了)? 关于weblogic的问题!!!!!
是怎么处理.
在资源快要枯竭的时候就是new char[100],也得判断啊!!!!!!!!!!!
try{ }
catch(Exception){ }
分配失败会抛出违例
try{
char c=new char[200000000];
}catch(Exception){ }
catch不到这个exception啊!
Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector.
给分!给分啊!!!!