- 浏览: 137901 次
- 性别:
- 来自: 上海
-
最新评论
-
qq466862016:
不错的文章
JDK动态代理与CGLIB代理的对比 -
jinxiongyi:
你好,jpedal pdf转换图片的 画质,怎么提高。。我转 ...
介绍几款PDF转图片的开源工具 -
qqdwll:
转图片消耗的内存还是不小。 有时间得找找有没有更好的办法, 把 ...
介绍几款PDF转图片的开源工具 -
xiaoyao3857:
Thanks for your work!It's help ...
Keeping Eclipse running clean (转载) -
iceside:
图片讲解非常详细,说清了引用复制是怎么回事
Java 值传递的终极解释
文章列表
原文地址: http://www.ibm.com/developerworks/library/j-leaks/
Troubleshooting Memory Leaks
If your application's execution time becomes longer and longer, or if the operating system seems to be performing slower and slower, this could be an indication of a memory leak. In other words, virtual memory is be ...
原文地址: http://www.ibm.com/developerworks/library/j-leaks/
Handling memory leaks in Java programsFind out when memory leaks are a concern and how to prevent them
Jim Patrick (patrickj@us.ibm.com), Advisory Programmer, IBM Pervasive Computing
Jim Patrick is an Advisory Programmer in IBM's Pervasive C ...
There will be times when you will want to define a class member that will be used independently of any object of that class. Normally a class member must be accessed only in conjunction with an object of its class. However, it is possible to create a member that can be used by itself, without referen ...
http://blog.csdn.net/zkdemon/archive/2008/01/14/2043503.aspx
java泛型详解 收藏
泛型(Generic type 或者generics)是对 Java 语言的类型系统的一种扩展,以支持创建可以按类型进行参数化的类。可以把类型参数看作是使用参数化类型时指定的类型的一个占位符,就像方法的形式参数是运行时传递的值的占位符一样。
可以在集合框架(Collection framework)中看到泛型的动机。例如,Map类允许您向一个Map添加任意类的对象,即使最常见的情况是在给定映射(map)中保存某个特定类型(比如String)的对 ...
- 2009-12-02 22:53
- 浏览 866
- 评论(0)
版权声明:本文可以自由转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明
作者:langm
原文:http://www.matrix.org.cn/resource/article/44/44056_NoClassDefDoundErr.html
在读这篇文章之前,你最好了解一下Java的Exception机制。
也许你在开发的过程中经常地见到ClassNotFoundException和NoClassDefFoundErr这两个异常,每每看到之后,都会一概而论的是类没有找到,但有些时候见到他们的时候又有些疑惑(至少我是这样),为什么Java要用两个异常来表示类定义没有找到那? ...
- 2009-11-25 22:51
- 浏览 721
- 评论(0)
I ran across a little tip tonight I thought I should share. Trying to perform a large XSLT tranform with Ant kept giving me the following error: Out of memory. Increase Heap Size.
This is a Java error indicating that the virtual machine is out of memory. So now I know what the problem is, what next ...
- 2009-11-19 18:42
- 浏览 1728
- 评论(0)
XML 处理实践
一: DOM解析
1. 把XML文挡以String读出
File docFile = new File( fileName);
//FileUtils. commons-io-1.4.jar
String result = FileUtils.readFileToString(new File(fileName), UTF_8);
2. 把String写出到XML文挡
File dest = new File (fileName);
String contens = contents;
FileUtils.writeStringToFile(dest, c ...
- 2009-11-17 22:39
- 浏览 1266
- 评论(0)
package com.util;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import jav ...
- 2009-11-16 00:33
- 浏览 1743
- 评论(0)
Qusay H. MahmoudJanuary 2002
The Java Remote Method Invocation (RMI) mechanism and the Common Object Request Broker Architecture (CORBA) are the two most important and widely used distributed object systems. Each system has its own features and shortcomings. Both are being used in the industry f ...
- 2009-11-15 16:56
- 浏览 845
- 评论(0)
最近运行程序,老是遇到内存溢出的问题,Out of Memory(系统内存不足)的异常。仔细查资料,好好学习了一下虚拟机的几只,才知道,这是因为Java虚拟机默认分配的内存只有64M,如果应用的比较大,超出了64M,Java虚拟机就会抛出OutOfMemoryError,并停止运行。所以,如果我们要运行大程序,就必须添加内存使用命令-Xms(最小使用内存) -Xmx(最大使用内存)。
一般在开发有,我们有如下几种可能用到的地方。
1.单独的.class
java -Xms64m -Xmx256m Test
...
- 2009-11-15 15:50
- 浏览 1152
- 评论(0)