17.
Set接口中重写hashCode()会提高性能?
建议给自己写得class全部加上一个hashCode,否则会使用object的hashcode,全都一样,会导致很多问题。记得《Effective java》中有一条就是:如果你写了equals,必须要写hashcode,我的一位大佬讲equals调用前会先比较hashcode,若hashcode不相等则不会比较。set是不允许重复的,这意味着你加入set中的数据会和set中已有的数据进行比较,所以,一定要写hashcode,这样才能加快比较速度。hashcode也要写得好点,尽量避免碰撞
18.
在Struts技术中,“超级链接”使用ForwardAction类进行实现
三个必须有的属性path parameter type
例:
<action path="/viewsignin" parameter="/security/signin.jsp" type="org.apache.struts.actions.ForwardAction"/>
19.
Date now=new Date();
Timestamp ts = new Timestamp(now.getTime());
ps.setTimestamp(8, ts);
ps.executeUpdate();
往数据库中插入日期方法
20.
<td height="50" align="left" valign="top" style="position:relative"><div id="Layer2" style="position:absolute; width:132px; height:38px; z-index:2; left: 472px;">sdafasdf</div></td>