java
witty_wang
interested in hacker technology, And like reading. It is me, a common man:)
展开
-
关注性能:异常的异常 - (http://www.javafan.net)
关注性能:异常的异常 作者:Jack Shirazi 来自:IBM 在这个专栏的第一期,我们讨论了抛出异常的开销。这个月,我们换一个角度再来看这个主题 —— JVM 如何处理所抛出转载 2006-06-08 10:59:00 · 552 阅读 · 0 评论 -
eclipse下的tomcat内存设置大小
eclipse下的tomcat内存设置大小在eclipse中设置,居然可以了,设置步骤如下:1.点击eclipse上的debug图标旁边的下拉箭头2.然后选择Run Configurations,3.系统弹出设置tomcat配置页面,在Argument中末尾添加参数中的VM arguments中追加:-Xms256M -Xmx512M -XX:P转载 2014-07-06 23:29:55 · 142 阅读 · 0 评论 -
difference between synchronized and ThreadLocal
ThreadLoal and Synchronized转载 2011-01-12 18:08:00 · 168 阅读 · 0 评论 -
Eclipse中启动Tomcat出错问题
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:转载 2010-07-06 14:16:00 · 183 阅读 · 0 评论 -
Checked Exception VS unchecked Exception
异常的概念 任何的异常都是Throwable类(为何不是接口??),并且在它之下包含两个字类Error / Exception,而Error仅在当在Java虚拟机中发生动态连接失败或其它的定位失败的时候,Java虚拟机抛出一个Error对象。典型的简易程序不捕获或抛出Errors对象,你可能永远不会遇到需要实例化Error的应用,那就让我们关心一下Exception。转载 2009-08-10 10:03:00 · 279 阅读 · 0 评论 -
servlet receive a object from client
@Override protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { System.out.println("----- in the server side -----"); Servle原创 2008-05-29 14:05:00 · 253 阅读 · 0 评论 -
send a request to servlet ( through object or http parameter )
send a java object to servlet: _con.setRequestProperty("Content-type","application/octet-stream"); OutputStream outStream = _con.getOutputStream(); ObjectOutputStream objStream = ne原创 2008-05-29 14:04:00 · 270 阅读 · 0 评论 -
Replace string using regular expression in java
We can using regular expression to replace some char in java. The below is aexample for remove blank and number and Punctuation.public class Www { /** * Description: * Conditi原创 2008-07-29 23:38:00 · 255 阅读 · 0 评论 -
Java 5 的新特性
自己学习时简单总结的Java5和Java6的新特性:Java5:1、泛型 Generics:引用泛型之后,允许指定集合里元素的类型,免去了强制类型转换,并且能在编译时刻进行类型检查的好处。Parameterized Type作为参数和返回值,Generic是vararg、annotation、enumeration、collection的基石。A、类型安全抛弃List、Map,转载 2014-06-22 08:22:36 · 157 阅读 · 0 评论