Java
together_2008
这个作者很懒,什么都没留下…
展开
-
JVM unrestricted policy
<br />summary some java tech: <br /> <br />try to encrytion my files by PGP, encounter following error: <br />java.security.InvalidKeyException: Illegal key size or default parameters <br /> <br />after seaching all web posed: the solution as following <b原创 2011-03-11 15:22:00 · 451 阅读 · 0 评论 -
java web start
<br />java web start <br /> <br />applet/jnlp 关于临时目录和java设置的笔记<br /> <br />1 控制面板里 点击java console, 就可以看到临时目录等信息<br /> <br />2 在浏览器internet option里面就可以选择用哪个jvm原创 2011-02-28 15:54:00 · 330 阅读 · 0 评论 -
jaxb: java type - xml type mappping
refer http://manyuewushuang.javaeye.com/blog/684379转载 2010-08-02 14:31:00 · 382 阅读 · 0 评论 -
关于Heap/Stack
Stack 存值变量和引用变量等临时变量. Heap 分为 Young Old perm. 其中young 存放刚实力化的instance信息,如果young满了,GC 会将对象移到old 中去. perm 存class 和meta 信息. GC 分为min 和 full, min 指发生在新生代上的GC, Full 指young和old 之间的. GC 方式:原创 2010-05-29 22:50:00 · 228 阅读 · 0 评论 -
Class.forName() and ClassLoader.loadClass()
Class. forName(String className) throws ClassNotFoundExceptionReturns the Class object associated with the class or interface with the given string name. Invoking this method is equivalent to: Cl原创 2010-05-30 17:46:00 · 241 阅读 · 0 评论 -
Java 事务处理
事务处理的原则:ACID(Atomicity, Consistency, isolation and Durability), java 的事务处理有jdbc 事务处理, jta 处理和容器处理. JDBC 事务处理 public int delete(int id){ DBConnection dbc =new DBConnection(); Co原创 2010-05-29 16:45:00 · 264 阅读 · 0 评论 -
Seam Annotation
How to create and use a self-defined annotaion in Seam? 1. create annotation intercepter class, following annotations can set some properties for this annotation. @Interceptor(around = {原创 2009-04-29 16:39:00 · 405 阅读 · 0 评论 -
HashMap 应用小例子
Today, write a little program about HashMap: HashMap is unsyc map, key and value can be null. Note: the HashMap traverse function. import java.util.*;public class CharNum{publ原创 2009-03-30 14:28:00 · 780 阅读 · 0 评论 -
Sax parse special character &
Today encounter a problems when parsing a xml by sax. Afteranalysis, the root cause is special character &. If I call thiswith a xml that has an ampersand in it (e.g. &), the rest ofthe t原创 2009-02-12 16:42:00 · 346 阅读 · 0 评论 -
文件和byte数组
<br />写byte到文件 <br /> <br />byte[] diagram = test.getDiagramDefinition(); BufferedOutputStream stream = null; File file = null; try { file = new File("e://result.xml"); FileOutputStream fstream = new Fil原创 2011-03-11 15:38:00 · 343 阅读 · 0 评论