
Java Basic
iteye_5554
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
No Title
About data structure Hashtable is implemented using a linkedList array. HashSet is implemented using a Hashtable. TreeSet is a sorted collection. It's implemented using a red-black tree. ...原创 2009-03-04 18:07:55 · 98 阅读 · 0 评论 -
How to judge whether this is a 32 bit jvm or 64 bit jvm?
[Solution 1]java –version command after jdk1.6 can give you 32 bit or 64 bit info.Before jdk1.5, doesn’t contain this info. [Solution 2]In linux env, run this command to check . fi...原创 2009-08-24 13:33:49 · 186 阅读 · 0 评论 -
jconsole easy usage
client sidejava_home/bin/jconsole.exe service:jmx:rmi:///jndi/rmi://192.168.***.***:8003/jmxrmiServer side add this parameter -Dcom.sun.management.jmxremote -Dcom.sun.management.jm...原创 2009-08-22 12:31:53 · 97 阅读 · 0 评论 -
eclipse remote debug
The most important thing is: The jdk of server side and client side must be exactly the same. then in start command: remoteDebug="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport...原创 2009-08-22 10:41:19 · 109 阅读 · 0 评论 -
PATH and java.library.path CLASSPATH and java.class.path
PATH is the environment variable. java.library.path is the system properties. When the java application started, JVM will set java.library.path’s value using PATH’s value.In java program, i...原创 2009-07-06 17:17:05 · 109 阅读 · 0 评论 -
RMI quick start
Q) How to start RMI Registry Server?A) 2 solutions. Solution 1) From cmd window. Java/bin folder, use rmiregistry.exe If you call rmiregistry, it will start rmi server o...原创 2009-06-19 17:45:58 · 107 阅读 · 0 评论 -
equals(), hashCode() and toString()
@Override public boolean equals(Object object){ return EqualsBuilder.reflectionEquals(this, object);} @Override ...原创 2009-11-18 21:49:23 · 122 阅读 · 0 评论 -
Random usage
public class RandomTest{ public static void main(String[] args) { Random rand1 = new Random(47); Random rand2 = new Random(47); for (int i = 0; i...2009-04-14 17:23:38 · 87 阅读 · 0 评论 -
Overwrite readonly File
Readonly file can't be changed, and can be deleted.2009-04-03 11:18:33 · 181 阅读 · 0 评论 -
Java File path
How to load a properties? Simply add the properties’ folder into the classpath, then load it in this way. private static Properties prop = new Properties();prop.load(Constants.class.getClas...原创 2009-04-03 10:46:10 · 129 阅读 · 0 评论 -
java start up arg samples
Unix env setupjflags="-ms1536M -mx1536M -Xnoclassgc"gcVerbose="-verbose:gc"jconsole="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8003 -Dcom.sun.management.jmxremote.authen...原创 2009-08-24 16:29:49 · 123 阅读 · 0 评论