上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 55 下一页
A buffer is a linear, finite sequence of elements of a specific primitive type. Aside from its content, the essential properties of a buffer are its c Read More
posted @ 2014-07-21 19:58 等风来。。 Views(277) Comments(0) Diggs(0) Edit
两个线程,一个输出1,3,5,7......99;另一个输出2,4,6,8......100。1.线程同步 1 public class ST2 { 2 int i = 0; 3 4 public static void main(String[] args) { 5 ... Read More
posted @ 2014-07-21 17:39 等风来。。 Views(1418) Comments(0) Diggs(0) Edit
select a.* from A awhere exists ( select 1 from B b where a.id=b.id ) 1 public List exist(){ 2 List result; 3 Array A=(select * from A) 4 5 for... Read More
posted @ 2014-07-21 16:25 等风来。。 Views(219) Comments(0) Diggs(0) Edit
触发器主要是通过事件进行触发而被执行的,而存储过程可以通过存储过程名字而被直接调用。当对某一表进行诸如UPDATE、 INSERT、 DELETE 这些操作时, 就会自动执行触发器所定义的SQL 语句,从而确保对数据的处理必须符合由这些SQL 语句所定义的规则。触发器的主要作用就是其能够实现由主... Read More
posted @ 2014-07-21 15:58 等风来。。 Views(165) Comments(0) Diggs(0) Edit
1.机制:spring mvc的入口是servlet,而struts2是filter2. 性能:spring会稍微比struts快。spring mvc是基于方法,单例(servlet也是单例);而sturts是基于类,多例3. Intercepter的实现机制:struts有以自己的Interce... Read More
posted @ 2014-07-20 18:00 等风来。。 Views(230) Comments(0) Diggs(0) Edit
1。servleturl传来之后,就对其进行处理,之后返回或转向到某一自己指定的页面。它主要用来在业务处理之前进行控制。 2。filter url传来之后,检查之后,可保持原来的流程继续向下执行。 filter可用来进行字符编码的过滤,检测用户是否登陆,禁止页面缓存等3。servlet 与... Read More
posted @ 2014-07-20 17:47 等风来。。 Views(181) Comments(0) Diggs(0) Edit
1.意义同一个TCP连接来发送和接收多个HTTP请求/应答,而不是为每一个新的请求/应答打开新的连接的方法。2.优较少的CPU和内存的使用允许请求和应答的HTTP pipelining降低网络阻塞减少了后续请求的延迟(无需再进行握手)报告错误无需关闭TCP连接3.缺空闲的连接需要过段时间后才能被断开... Read More
posted @ 2014-07-19 00:09 等风来。。 Views(190) Comments(0) Diggs(0) Edit
1.静态方法是使用公共内存空间的,就是说所有对象都可以直接引用,不需要创建对象再使用该方法。 2.测试 Read More
posted @ 2014-07-18 23:50 等风来。。 Views(834) Comments(0) Diggs(0) Edit
1. 2. Read More
posted @ 2014-07-18 23:43 等风来。。 Views(256) Comments(0) Diggs(0) Edit
1.为什么用StringBuilder String 字符串常量 StringBuffer 字符串变量(线程安全) StringBuilder 字符串变量(非线程安全) 简要的说, String 类型和 StringBuffer 类型的主要性能区别其实在于 String 是不可变的对象, 因此在每次 Read More
posted @ 2014-07-18 15:51 等风来。。 Views(191) Comments(0) Diggs(0) Edit
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 55 下一页
------------------------------------------------------------------------------------------------------------ --------------- 欢迎联系 x.guan.ling@gmail.com--------------- ------------------------------------------------------------------------------------------------------------