??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久久亚洲av无码专区导航,亚洲一区二区三区首页,亚洲福利在线观看http://www.tkk7.com/GavinMiao/archive/2012/04/12/374017.htmlGavinMiaoGavinMiaoThu, 12 Apr 2012 14:39:00 GMThttp://www.tkk7.com/GavinMiao/archive/2012/04/12/374017.htmlhttp://www.tkk7.com/GavinMiao/comments/374017.htmlhttp://www.tkk7.com/GavinMiao/archive/2012/04/12/374017.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/374017.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/374017.html阅读全文

GavinMiao 2012-04-12 22:39 发表评论
]]>
不用临时变量交换两个?/title><link>http://www.tkk7.com/GavinMiao/archive/2012/04/12/373932.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Thu, 12 Apr 2012 03:27:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2012/04/12/373932.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/373932.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2012/04/12/373932.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/373932.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/373932.html</trackback:ping><description><![CDATA[Ҏ(gu)1Q?br /><div><div><span style="white-space:pre"> </span>a=a^b;</div><div><span style="white-space:pre"> </span>b=a^b;</div><div><span style="white-space:pre"> </span>a=a^b;</div></div><div>Ҏ(gu)2Q?br /><div><div><span style="white-space:pre"> </span>a=a+b;</div><div><span style="white-space:pre"> </span>b=a-b;</div><div><span style="white-space:pre"> </span>a=a-b;</div></div><div></div></div><img src ="http://www.tkk7.com/GavinMiao/aggbug/373932.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2012-04-12 11:27 <a href="http://www.tkk7.com/GavinMiao/archive/2012/04/12/373932.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>易宝支付面试题(Ҏ(gu)|上ȝQ?/title><link>http://www.tkk7.com/GavinMiao/archive/2012/04/11/373780.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Wed, 11 Apr 2012 03:32:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2012/04/11/373780.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/373780.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2012/04/11/373780.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/373780.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/373780.html</trackback:ping><description><![CDATA[1.public class TestKnowleage5 {<div><div><span style="white-space:pre"> </span>public static void main(String[] args){</div><div><span style="white-space:pre"> </span>String strValue = "ABCDEFG";</div><div><span style="white-space:pre"> </span>strValue.substring(3);</div><div><span style="white-space:pre"> </span>System.out.println("result1"+strValue);</div><div><span style="white-space:pre"> </span>strValue.concat("123");</div><div><span style="white-space:pre"> </span>System.out.println("result2"+strValue);</div><div><span style="white-space:pre"> </span>String value = new String("ABCDEFG");</div><div><span style="white-space:pre"> </span>System.out.println(strValue==value);</div><div><span style="white-space:pre"> </span>}</div><div>}<br /><br />q行l果Q?br /><div><div>result1ABCDEFG</div><div>result2ABCDEFG</div><div>false<br />2.public class Test{<br />    public static void main(String[] args){<br />        <span style="white-space:pre"> </span>int x = 100;<div><div><span style="white-space:pre"> </span>int y = 200;</div><div><span style="white-space:pre"> </span>if(x == y)</div><div><span style="white-space:pre"> </span>System.out.println("not equal");</div><div><span style="white-space:pre"> </span>else</div><div><span style="white-space:pre"> </span>System.out.println("equal");</div></div>    }<br />}<br /><br />q行l果Q?br />equal<br /><br />3.public class TestKnowleage5 {<div><div><span style="white-space:pre"> </span>public static void main(String[] args){</div><div><span style="white-space: pre; "> </span>try{</div><div><span style="white-space:pre"> </span>new TestKnowleage5().methodA(5);</div><div><span style="white-space:pre"> </span>}catch(IOException e){</div><div><span style="white-space:pre"> </span>System.out.println("caught IOException");</div><div><span style="white-space:pre"> </span>}catch(Exception e){</div><div><span style="white-space:pre"> </span>System.out.println("caught Exception");</div><div><span style="white-space:pre"> </span>}finally{</div><div><span style="white-space:pre"> </span>System.out.println("no Exception");</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span></div><div><span style="white-space:pre"> </span>public void methodA(int i) throws IOException{</div><div><span style="white-space:pre"> </span>if(i%2 != 0){</div><div><span style="white-space:pre"> </span>throw new IOException("methodA IOException");</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>}</div><div>}</div></div><br />q行l果Q?br /><div><div>caught IOException</div><div>no Exception</div></div><br />4.public class TestKnowleage5 {<div><div></div><div><span style="white-space:pre"> </span>static boolean isTrue(){</div><div><span style="white-space:pre"> </span>System.out.println("isTrue");</div><div><span style="white-space:pre"> </span>return true;</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>static boolean isFalse(){</div><div><span style="white-space:pre"> </span>System.out.println("isFalse");</div><div><span style="white-space:pre"> </span>return false;</div><div><span style="white-space:pre"> </span>}<span style="white-space:pre"> </span></div><div><span style="white-space:pre"> </span>public static void main(String[] args){</div><div><span style="white-space:pre"> </span>if(isTrue() || isFalse()){</div><div><span style="white-space:pre"> </span>System.out.println("|| operate return true");</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>if(isFalse() & isTrue()){</div><div><span style="white-space:pre"> </span>System.out.println("& operate return true");</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>}</div><div></div><div>}</div></div><br />q行l果Q?br /><div><div>isTrue</div><div>|| operate return true</div><div>isFalse</div><div>isTrue</div></div><br />5.public class TestKnowleage5{<div><div><span style="white-space:pre"> </span>public static void main(String args[]){</div><div><span style="white-space:pre"> </span>MyThread t = new MyThread();</div><div><span style="white-space:pre"> </span>t.run();</div><div><span style="white-space:pre"> </span>t.start();</div><div><span style="white-space:pre"> </span>System.out.println("A");</div><div><span style="white-space:pre"> </span>}</div><div>}</div><div></div><div>class MyThread extends Thread{</div><div><span style="white-space:pre"> </span>public void run(){</div><div><div><div><span style="white-space:pre"> </span>try{</div><div><span style="white-space:pre"> </span>Thread.currentThread().sleep(3000);</div><div><span style="white-space:pre"> </span>}catch(InterruptedException e){</div><div><span style="white-space:pre"> </span></div><div><span style="white-space:pre"> </span>}</div></div></div><div><span style="white-space:pre"> </span>System.out.println("B");</div><div><span style="white-space:pre"> </span>}</div><div>}</div></div>q行l果Q?br />BBA?br />BAB<br />6.class A{<div><div><span style="white-space:pre"> </span>void fun1(){</div><div><span style="white-space:pre"> </span>System.out.println(fun2());</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span></div><div><span style="white-space:pre"> </span>int fun2(){</div><div><span style="white-space:pre"> </span>return 123;</div><div><span style="white-space:pre"> </span>}</div><div>}</div><div>public class TestKnowleage5  extends A{</div><div><span style="white-space:pre"> </span>int fun2(){</div><div><span style="white-space:pre"> </span>return 456;</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span></div><div><span style="white-space:pre"> </span>public static void main(String[] args){</div><div><span style="white-space:pre"> </span>A a;</div><div><span style="white-space:pre"> </span>TestKnowleage5 b = new TestKnowleage5();</div><div><span style="white-space:pre"> </span>b.fun1();</div><div><span style="white-space:pre"> </span>a = b;</div><div><span style="white-space:pre"> </span>a.fun1();</div><div><span style="white-space:pre"> </span>}</div><div>}</div></div><br />q行l果Q?br /><div><div>456</div><div>456</div></div>7.class A{</div><div><div><span style="white-space:pre"> </span>int val;</div><div></div><div><span style="white-space:pre"> </span>public int getVal() {</div><div><span style="white-space:pre"> </span>return val;</div><div><span style="white-space:pre"> </span>}</div><div></div><div><span style="white-space:pre"> </span>public void setVal(int val) {</div><div><span style="white-space:pre"> </span>this.val = val;</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span></div><div>}</div><div>public class TestKnowleage5{</div><div></div><div><span style="white-space:pre"> </span>public static void main(String[] args){</div><div><span style="white-space:pre"> </span>A data = new A();</div><div><span style="white-space:pre"> </span>ArrayList list = new ArrayList();</div><div><span style="white-space:pre"> </span>for(int i=100;i<103;i++){</div><div><span style="white-space:pre"> </span>data.setVal(i);</div><div><span style="white-space:pre"> </span>list.add(data);</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>int j = 0;</div><div><span style="white-space:pre"> </span>while(j<list.size()){</div><div><span style="white-space:pre"> </span>A tmp = (A)list.get(j);</div><div><span style="white-space:pre"> </span>System.out.println("list("+j+")="+tmp.getVal());</div><div><span style="white-space:pre"> </span>j++;</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>}</div><div>}<br /><br />q行l果Q?br /><div><div>list(0)=102</div><div>list(1)=102</div><div>list(2)=102</div></div><br />8.hibernate导入大量数据ӞZ避免内存中生大量对象,在编码时注意什么,如何去除Q?br /><br />9.视图与表的区?br />10.触发器有哪几U类?br />11.<div style="display: inline !important; ">事务操作有那几个步骤<br /></div>12.写出对应正则表达式:<br />1Q?-6位字母或数字Q?br />[a-zA-Z0-9]{1,6}<br />2Q手机号Q只能是139?59开_11位数字)<br />1[35][9][0-9]{8}<br />13.字符串反转:new StringBuilder(str).reverse().toString();<br />14.写程序:1+2²+3²+...+n²<br />int func(int n){<br />    return n==1?1:func(n-1)+n*n<br />}<br /><br />15.写一个gq加载的单例模式Q?br />public class SingleTon{<br />    private static  SingleTon  instance = null;<br />    private SingleTon(){}<br />    public static SingleTon getInstance(){<br />        if(instance == null){<br />                synchronized(""){<br />                    if(instance == null){return new SingleTon();}<br />                }<br />        }<br />        return instance;<br />    }<br />}<br /><br />16.<div style="display: inline-block; "></div><span id="1161666" class="Apple-style-span" style="font-family: arial, 宋体, sans-serif; line-height: 24px; background-color: #ffffff; ">JSP?U内|对象:</span><br />requestQ?div style="display: inline-block; "></div><span id="1116161" class="Apple-style-span" style="color: #6d6d6d; font-family: arial; font-size: 12px; line-height: 26px; background-color: #ffffff; ">HttpServletRequestcȝ实例Q?div style="display: inline-block; "></div></span><span id="1161161" class="Apple-style-span" style="font-family: arial, 宋体, sans-serif; line-height: 24px; background-color: #ffffff; ">客户端的h信息被封装在request对象?/span><br />responseQ?div style="display: inline-block; "></div><span id="1116616" class="Apple-style-span" style="font-family: arial, 宋体, sans-serif; line-height: 24px; background-color: #ffffff; ">HttpServletResponsecȝ实例Q?div style="display: inline-block; "></div></span><span id="6111616" class="Apple-style-span" style="font-family: arial, 宋体, sans-serif; line-height: 24px; background-color: #ffffff; ">response对象包含了响应客戯求的有关信息Q但在JSP中很直接用到它?/span><br />outQ?div style="display: inline-block; "></div><span id="1161116" class="Apple-style-span" style="font-family: arial, 宋体, sans-serif; line-height: 24px; background-color: #ffffff; ">out对象是JspWritercȝ实例,是向客户端输出内容常用的对象</span><br />sessionQ?div style="display: inline-block; "></div><span id="1111111" class="Apple-style-span" style="font-family: arial, 宋体, sans-serif; line-height: 24px; background-color: #ffffff; ">session对象指的是客L与服务器的一ơ会话,从客Lq到服务器的一个WebApplication开始,直到客户端与服务器断开q接为止。它是HttpSessioncȝ实例</span><br />pageQ?div style="display: inline-block; "></div><span id="6111666" class="Apple-style-span" style="font-family: arial, 宋体, sans-serif; line-height: 24px; background-color: #ffffff; ">page对象是指向当前JSP面本nQ有点象cM的this指针Q它是java.lang.Objectcȝ实例</span><br />applicationQ?div style="display: inline-block; "></div><span id="6666161" class="Apple-style-span" style="font-family: arial, 宋体, sans-serif; line-height: 24px; background-color: #ffffff; ">ServletContextcȝ实例,<div style="display: inline-block; "></div></span><span id="6116666" class="Apple-style-span" style="font-family: arial, 宋体, sans-serif; line-height: 24px; background-color: #ffffff; ">application对象实现了用户间数据的共享,可存攑օ局变量。它开始于服务器的启动Q直到服务器的关?/span><br />exceptionQ?div style="display: inline-block; "></div><span id="1661166" class="Apple-style-span" style="font-family: arial, 宋体, sans-serif; line-height: 24px; background-color: #ffffff; ">exception对象是一个例外对象,当一个页面在q行q程中发生了例外Q就产生q个对象。如果一个JSP面要应用此对象Q就必须把isErrorPage设ؓtrueQ否则无法编译。他实际上是java.lang.Throwable的对?/span><br />pageContextQ?div style="display: inline-block; "></div><span id="6116611" class="Apple-style-span" style="font-family: arial, 宋体, sans-serif; line-height: 24px; background-color: #ffffff; ">pageContext对象提供了对JSP面内所有的对象及名字空间的讉KQ也是说他可以讉K到本|在的SESSIONQ也可以取本面所在的application的某一属性|他相当于面中所有功能的集大成者,它的本类名也叫pageContext</span><br />configQ?div style="display: inline-block; "></div><span id="6166116" class="Apple-style-span" style="font-family: arial, 宋体, sans-serif; line-height: 24px; background-color: #ffffff; ">config对象是在一个Servlet初始化时QJSP引擎向它传递信息用的,此信息包括Servlet初始化时所要用到的参数Q通过属性名和属性值构成)以及服务器的有关信息Q通过传递一个ServletContext对象Q?/span><br />17.session和cookie的区别?<br />18.JDBC的操作步骤?<br /></div></div></div></div></div><img src ="http://www.tkk7.com/GavinMiao/aggbug/373780.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2012-04-11 11:32 <a href="http://www.tkk7.com/GavinMiao/archive/2012/04/11/373780.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>面试题(Ud通信斚wQ?/title><link>http://www.tkk7.com/GavinMiao/archive/2012/04/10/373745.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Tue, 10 Apr 2012 14:39:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2012/04/10/373745.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/373745.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2012/04/10/373745.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/373745.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/373745.html</trackback:ping><description><![CDATA[1.Ҏ(gu)重蝲与多态,qͼ<br />2.什么是设计模式Q用过哪些Q?br />3.列出熟?zhn)的java开源项目及qͼ<br />4.一lradioQ用alert弹出当前所选的是第几个radioQ用原生javascriptQ?br />5.function showme(){<div><div><span style="white-space:pre"> </span>Book.prototype.abc = function(){</div><div><span style="white-space:pre"> </span>alert('456');</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>var abook = new Book(1,2);</div><div><span style="white-space:pre"> </span>Book.abc = function(){</div><div><span style="white-space:pre"> </span>alert('123');</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>abook.abc();</div><div><span style="white-space:pre"> </span>Book.abc();</div><div><span style="white-space:pre"> </span>abc();//此方法调用浏览器会报错,未定?/div><div>}</div><div></div><div>function Book(a,b){</div><div><span style="white-space:pre"> </span>this.a = a;</div><div><span style="white-space:pre"> </span>this.b = b;</div><div><span style="white-space:pre"> </span>Book.abc = function(){</div><div><span style="white-space:pre"> </span>alert('def');</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>this.abc = function(){</div><div><span style="white-space:pre"> </span>alert('xyz');</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>abc = function(){</div><div><span style="white-space:pre"> </span>alert('@@@@@@');</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>var abc = function(){</div><div><span style="white-space:pre"> </span>alert('$$$$$$');</div><div><span style="white-space:pre"> </span>}</div><div>}<br /><br />点击按钮调用showme(),面昄l果为:<br />W一个弹出框Qxyz<br />W二个弹出框Q?23<br /><br />6.U程的四U状态?<br />7.ext有哪些组Ӟext如何与后C互?<br />8.HashMap攑օ、查找、删除,所有value攑օ一个数l,得到map中所有内容;Listd、查找、删除;<br />9.List<Student> student(name,age) 比较oldList<Student>和newList<student>,按名字比较,获得新增的、修改的、删除学生列表;<br />10.使用q哪些xml技术?怎么实现的?<br />11.java异常Qthrows、throw、try、catch、finally,举例Q如何处理异?br />12.字符串反转:<br /><div><div>public class TestKnowleage5 {</div><div><span style="white-space:pre"> </span>public static void main(String[] args){</div><div><span style="white-space:pre"> </span>System.out.println(reverse("abc"));</div><div><span style="white-space:pre"> </span>System.out.println(reverse2("abc"));</div><div><span style="white-space:pre"> </span>System.out.println(reverse3("abc"));</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span></div><div><span style="white-space:pre"> </span>public static String reverse(String str){</div><div><span style="white-space:pre"> </span>return new StringBuffer(str).reverse().toString();</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span></div><div><span style="white-space:pre"> </span>public static String reverse2(String str){</div><div><span style="white-space:pre"> </span>char[] chs = str.toCharArray();</div><div><span style="white-space:pre"> </span>char[] re = new char[chs.length];</div><div><span style="white-space:pre"> </span>for(int i = 0 ; i<chs.length;i++){</div><div><span style="white-space:pre"> </span>re[i] = chs[chs.length - i - 1]; </div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>return new String(re);</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span></div><div><span style="white-space:pre"> </span>public static String reverse3(String str){</div><div><span style="white-space:pre"> </span>char[] chs = str.toCharArray();</div><div><span style="white-space:pre"> </span>String re = ""; </div><div><span style="white-space:pre"> </span>for(int i = 0;i<chs.length;i++){</div><div><span style="white-space:pre"> </span>re += chs[chs.length - 1 -i];</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>return re;</div><div><span style="white-space:pre"> </span>}</div><div>}</div></div></div></div><img src ="http://www.tkk7.com/GavinMiao/aggbug/373745.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2012-04-10 22:39 <a href="http://www.tkk7.com/GavinMiao/archive/2012/04/10/373745.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>面试题(ERP行业Q?/title><link>http://www.tkk7.com/GavinMiao/archive/2012/04/10/373741.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Tue, 10 Apr 2012 13:59:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2012/04/10/373741.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/373741.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2012/04/10/373741.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/373741.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/373741.html</trackback:ping><description><![CDATA[<div><strong><div style="display: inline !important; "><div style="display: inline !important; "><div style="display: inline !important; "><div style="display: inline !important; ">//此句Q编译无法通过QCannot make a static reference to the non-static field b</div></div></div></div></strong><strong>1.arrayList、linkedList、vector的区?br />2.</strong><strong>写几UJ2EE规范q简要描q?br />3.什么是设计模式?用过哪些设计模式Q?br />4.OO的四大特性是哪些Qƈ要描q?br />5.Ҏ(gu)重蝲、多态概念及要描qͼ<br />6.sql常用的优化方法有哪些Q?br />7.sleep()与wait()的区别?<br />8.<br /><div><div>public class TestException {</div><div><span style="white-space:pre"> </span>public static void main(String[] args) {</div><div><span style="white-space:pre"> </span>int i = 1;</div><div><span style="white-space:pre"> </span>switch(i){</div><div><span style="white-space:pre"> </span>case 0:</div><div><span style="white-space:pre"> </span>System.out.println(0);</div><div><span style="white-space:pre"> </span>break;</div><div><span style="white-space:pre"> </span>case 1:</div><div><span style="white-space:pre"> </span>System.out.println(1);</div><div><span style="white-space:pre"> </span>default:</div><div><span style="white-space:pre"> </span>System.out.println(4);</div><div><span style="white-space:pre"> </span>case 2:</div><div><span style="white-space:pre"> </span>System.out.println(2);</div><div><span style="white-space:pre"> </span>case 3:</div><div><span style="white-space:pre"> </span>System.out.println(3);</div><div></div><div><span style="white-space:pre"> </span>}</div><div></div><div><span style="white-space:pre"> </span>}</div><div>}</div></div>q行l果Q?br /><div><div>1</div><div>4</div><div>2</div><div>3<br />9.HashTable和HashMap的区?br />10.怎样理解mvc模式Q?br />11.抽象cR接口的区别Q?br />12.智力题:<br />?-7P7块地QS、U、V、W、X 5个遗产承者,<br />S若?P不能l承3P<br />3号和4号不能同时承;<br />S若承一块或多块圎ͼ则U不能l承<br />1块地不能?人合分;<br /><br />问:若Sl承2号地Q剩?个h中,不能同时?块地Q?br />A:1? B:1? c:3? dQ?? eQ??<br />13.<br /><div><div>public class TestKnowleage5 {</div><div><span style="white-space:pre"> </span>static int a;</div><div><span style="white-space:pre"> </span>int b,c=0;</div><div><span style="white-space:pre"> </span></div><div><span style="white-space:pre"> </span>public static void main(String[] args){</div><div><span style="white-space:pre"> </span>a++;</div><div><span style="white-space:pre"> </span>b++;//此句Q编译无法通过QCannot make a static reference to the non-static field b</div></div></div></div></strong><strong><div><div><div><div><span style="white-space:pre"> </span>c++; //此句Q编译无法通过Qcannot make a static reference to the non-static field c</div></div></div></div></strong><strong><div><div><div><div><span style="white-space:pre"> </span>}</div><div>}</div></div><br /><br /></div></div>参考文章:<br /><div><a >http://jinyanliang.iteye.com/blog/688756</a></div></strong></div><img src ="http://www.tkk7.com/GavinMiao/aggbug/373741.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2012-04-10 21:59 <a href="http://www.tkk7.com/GavinMiao/archive/2012/04/10/373741.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用友面试题(参考网上ȝ而出Q?/title><link>http://www.tkk7.com/GavinMiao/archive/2012/04/09/373615.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Mon, 09 Apr 2012 03:32:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2012/04/09/373615.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/373615.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2012/04/09/373615.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/373615.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/373615.html</trackback:ping><description><![CDATA[1Q有三个jsp面Qa.jsp b.jsp c.jsp,程是a.jsp--> b.jsp--> c.jsp,其中a.jsp提交的数据要在c.jsp中访问,用最单的办法怎么做?不用session?br />在b.jsp中放N个hidden隐藏域保存a.jsp中的数据Q一h交到c.jsp,在c.jsp中取出?.sql server支持集群么?<br />支持Q不q属于热备䆾cdQ不能做负蝲均衡。不q符合你的条?br />首先pȝ做集,数据库文件放到磁盘阵列里Q双机或多机共同讉K盘阵列Q就可以了,可以集群后做负蝲均衡Q?br />3.HashTable与HashMap的区别:<br />1QHashMap非线E安全,HashTableU程安全Q?br />2QHashMap可放一条key为空的记录,L记录的value可ؓI,hashTable不可以;<br />3QhashMapL了containsҎ(gu)Q增加了containsKey和containsValueҎ(gu)Q?br />4.如何理解mvc模式Q?br />mvc是sun提出的model2开发模式,控制、视图、模型进行了分离Q提高了可维护性、扩展性、可UL性、组件的可复用性;<br />5.SingleTonQ?br />6.对象序列化的含义Q?br />java序列化技术可以你将一个对象的状态写入一个byte里Qƈ且可以从其它地方把该byte里的数据读出来Q重新构造一个相同的对象?br />q种机制允许你将对象通过|络传播Qƈ且随时可以把对象持久化到数据库、文件等pȝ里,java的序列化技术是RMI、EJB{技术的基础Q?br />实现Ҏ(gu)Qimplements Serializable标记为可序列化,然后用ObjectOutputStream和ObjectInputStreamdQ?br />7.数据库中的锁包含哪些Q?br />排它锁和׃n?br />8.jsp和servlet的区别:<br />1Q简单来_jsp是含有java代码的html,servlet是含有html的java代码Q?br />2Qjsp最l被解释成servletQ编译再执行Qjsp不过是servlet的另一U编写Ş式;<br />3Qjsp擅长表示Qservlet擅长数据处理Q在mvc中jsp处于视图层,servlet处于控制层;<br />9.oracle在数据库中的交集怎么表示Q?br />1Q用intersect操作W?2)用in 语句<br />9.JNDI、JMS、JTA、RMIQ?br /><br />JNDIQjava naming and directory interface java命名目录接口<br />JMSQjava messing service java消息服务<br />JTAQjava transaction api java事务api<br />RMIQ?div style="display: inline-block; "></div><span id="6616111" class="Apple-style-span" style="font-family: arial; line-height: 18px; font-size: small; background-color: #ffffff; ">Remote Method Invocation q程Ҏ(gu)调用<br /><br /></span>10.事务Q?br /><br />1QACID属性:<br />AQatomic 原子?br />CQconsistent 一致?br />IQisolation 隔离?br />D:duration 持久?br />2Q概念:事务是一pd操作Q它们完成一Q务。只要这些操作里有一Ҏ(gu)成功Q事务就操作p|Q发生回滚事件。即撤销前面的操作,q样可以保证数据的一致性。而且可以把操作放在缓存里Q等所有操作都成功提交数据库Q这样保证费时的操作都是有效操作?br />3Q隔ȝ?4Q传播行?br />参考文档:<a >http://wenku.baidu.com/view/56a532eb856a561252d36f81.html</a><br /><img src ="http://www.tkk7.com/GavinMiao/aggbug/373615.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2012-04-09 11:32 <a href="http://www.tkk7.com/GavinMiao/archive/2012/04/09/373615.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>面试题(某呼叫中心)http://www.tkk7.com/GavinMiao/archive/2012/04/07/373506.htmlGavinMiaoGavinMiaoFri, 06 Apr 2012 16:14:00 GMThttp://www.tkk7.com/GavinMiao/archive/2012/04/07/373506.htmlhttp://www.tkk7.com/GavinMiao/comments/373506.htmlhttp://www.tkk7.com/GavinMiao/archive/2012/04/07/373506.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/373506.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/373506.html2.Customer(id,name,phone,country);每个客户均有地区(country)属性,每个地区可有1或多个客P查询拥有过10名客L地区的列表;
3.public interface TreeNode{
    String getName();
    List getChildren();
}
 写一个print()Ҏ(gu),打印各节点名称.

4.String与StringBuffer的区别?
String
5.ajax名词解释Q它的核心h(hun)值及原理Q?br />6.事务的概念及名词解释Q?br />7.数据库表之间有几U关p,qD例;
8.Filter的原?常见用例Q?br />9.视图与表的区别?触发器类型有哪些cdQ?br />10.及各U约束;
11.hibernate导入大量数据ӞZ避免内存中生大量对象,在编码时注意什么,如何去除Q?img src ="http://www.tkk7.com/GavinMiao/aggbug/373506.html" width = "1" height = "1" />

GavinMiao 2012-04-07 00:14 发表评论
]]>
String面试?/title><link>http://www.tkk7.com/GavinMiao/archive/2012/04/06/373497.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Fri, 06 Apr 2012 10:26:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2012/04/06/373497.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/373497.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2012/04/06/373497.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/373497.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/373497.html</trackback:ping><description><![CDATA[    只有注册用户d后才能阅读该文?a href='http://www.tkk7.com/GavinMiao/archive/2012/04/06/373497.html'>阅读全文</a><img src ="http://www.tkk7.com/GavinMiao/aggbug/373497.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2012-04-06 18:26 <a href="http://www.tkk7.com/GavinMiao/archive/2012/04/06/373497.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>面试题(通信行业公司Q?/title><link>http://www.tkk7.com/GavinMiao/archive/2012/03/30/373055.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Fri, 30 Mar 2012 08:00:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2012/03/30/373055.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/373055.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2012/03/30/373055.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/373055.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/373055.html</trackback:ping><description><![CDATA[一、unixQ?br />1.ps -ef|grep tomcat<br />2.mkdir dir<br />3.打tar包:tar -cvf XXX.tar XXX<br />4.解压tar包:tar -xvf XXX.tar<br />二、java<br /><span style="background-color: #ffffff; ">1.HashMap和HashTable的区别:</span><br /><span id="6166616" class="Apple-style-span" style="font-family: verdana, 'ms song', 宋体, Arial, 微Y雅黑, Helvetica, sans-serif; font-size: 13px; line-height: 19px; background-color: #ffffff; ">HashMap不是U程安全的,<div style="display: inline-block; "></div></span><span id="6611111" class="Apple-style-span" style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; background-color: #ffffff; ">HashTable是线E安全的</span><span id="1116611" class="Apple-style-span" style="font-family: verdana, 'ms song', 宋体, Arial, 微Y雅黑, Helvetica, sans-serif; font-size: 13px; line-height: 19px; background-color: #fefef2; "><br /></span><span id="1116111" class="Apple-style-span" style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; background-color: #ffffff; ">HashTable不允许null?key和value都不可以),HashMap允许null?key和value都可??br /></span><span id="1166661" class="Apple-style-span" style="font-family: Helvetica, Tahoma, Arial, sans-serif; line-height: 25px; background-color: #ffffff; ">HashTable使用EnumerationQHashMap使用Iterator?br /></span><span id="6111161" class="Apple-style-span" style="font-family: verdana, 'ms song', 宋体, Arial, 微Y雅黑, Helvetica, sans-serif; font-size: 13px; line-height: 19px; background-color: #fefef2; ">HashMap把Hashtable的containsҎ(gu)L了,Ҏ(gu)containsvalue和containsKey?br /></span><span id="1161116" class="Apple-style-span" style="font-family: 宋体; line-height: 24px; background-color: #ffffff; ">Hashtable是基于陈旧的Dictionaryc,完成了Map接口QHashMap是Java 1.2引进的Map接口的一个实玎ͼHashMapl承于AbstractMap,AbstractMap完成了Map接口Q?br /></span><span id="6611661" class="Apple-style-span" style="font-family: 宋体; line-height: 24px; background-color: #ffffff; ">HashTable中h(hun)ash数组默认大小?1Q增加的方式?old*2+1。HashMap中h(hun)ash数组的默认大是16Q而且一定是2的指数?br /></span><span id="1611111" class="Apple-style-span" style="font-family: 宋体; line-height: 24px; background-color: #ffffff; ">哈希值的使用不同QHashTable直接使用对象的hashCode?br /></span>2.什么是java的序列化Q如何实现java的序列化Q?br /><span id="1111166" class="Apple-style-span" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; "><p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">序列化就是一U用?span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">处理对象?/span></span><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">的机Ӟ所谓对象流也就?span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">对象的内容q行化</span></span><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">。可?span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">Ҏ(gu)化后的对象进行读写操作,也可流化后的对象传输于|络之间</span></span><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">。序列化是ؓ?span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">解决在对对象进行读写操作时所引发的问题?/span></span><span lang="EN-US" style="font-size: 9pt; color: red; font-size: 9pt;"></span></p><p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0pt; margin-left: 0cm; text-indent: 18pt; "><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">序列化的实现Q将需要被序列化的cd?/span><span lang="EN-US" style="font-size: 9pt; color: red; "><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">Serializable</span></span><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">接口</span><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">Q然后用一个输出流</span><span lang="EN-US" style="font-size: 9pt; "><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">(</span></span><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">如:</span><span style="font-family: 'Times New Roman'; "><span lang="EN-US" style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">FileOutputStream</span><span lang="EN-US" style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">)</span></span><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">来构造一?/span><span style="font-family: 'Times New Roman'; "><span lang="EN-US" style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">ObjectOutputStream</span><span lang="EN-US" style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">(</span></span><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">对象?/span><span lang="EN-US" style="font-size: 9pt; "><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">)</span></span><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">对象Q接着Q?/span><span lang="EN-US" style="font-size: 9pt; "><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">ObjectOutputStream</span></span><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">对象?/span><span lang="EN-US" style="font-size: 9pt; color: red; "><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">writeObject(Object obj)</span></span><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">Ҏ(gu)可以将参数?/span><span lang="EN-US" style="font-size: 9pt; "><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">obj</span></span><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">的对象写?/span><span lang="EN-US" style="font-size: 9pt; "><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">(</span></span><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">即保存其状?/span><span lang="EN-US" style="font-size: 9pt; "><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">)</span></span><span style="font-family: Arial; font-size: 10pt; background-color: #ffffff; ">Q要恢复的话则用输入?br /></span></p></span>3.什么是java的单例模式?写一个单例模式;<br /><span id="1661161" class="Apple-style-span" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; font-size: small; ">单例模式Q确保某一个类只有一个实例,而且自行实例化ƈ向整个系l提供这个实例。这个类UCؓ单例cR?br /></span><span id="6616661" class="Apple-style-span" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; "><p><font size="2">  代码清单1Q饿汉式单例c?br /><br />public class EagerSingleton <br />{ <br />    private static final EagerSingleton m_instance = new EagerSingleton(); </font></p><p><font size="2">   /** <br />   * U有的默认构造方?nbsp;<br />   */</font><font size="2"> <br />   private EagerSingleton() { } </font></p><p><font size="2">   /** <br />   * 静态方法获得单?nbsp;<br />   */ <br />   public static EagerSingleton getInstance() <br />   {<br />      return m_instance; <br />   }<br />}<br /><br /></font></p></span><span id="1111661" class="Apple-style-span" style="background-color: #ffffff; "><p style="color: #333333; font-family: Arial; line-height: 26px; "><font size="2"><span id="6111116" class="f14">代码清单2Q懒汉式单例c?br /><br />package com.javapatterns.singleton.demos;<br />public class LazySingleton<br />{<br />    private static LazySingleton m_instance = null;</span></font></p><font size="2"><span id="1616611" class="f14"><p style="color: #333333; font-family: Arial; line-height: 26px; "><br />    /**<br />    * U有的默认构造方法,保证外界无法直接实例?br />    */<br />    private LazySingleton() { }</p><p><br /><font class="Apple-style-span" color="#333333" face="Arial"><span id="6116666" class="Apple-style-span" style="line-height: 26px;">    /**</span></font><br /><font class="Apple-style-span" color="#333333" face="Arial"><span id="6161611" class="Apple-style-span" style="line-height: 26px;">    * 静态方法,q还此类的惟一实例</span></font><br /><font class="Apple-style-span" color="#333333" face="Arial"><span id="1116116" class="Apple-style-span" style="line-height: 26px;">    */</span></font><br /><font class="Apple-style-span" color="#333333" face="Arial"><span id="1116116" class="Apple-style-span" style="line-height: 26px;">    public synchronized static LazySingleton getInstance()</span></font><br /><font class="Apple-style-span" color="#333333" face="Arial"><span id="6161166" class="Apple-style-span" style="line-height: 26px;">    {</span></font><br /><font class="Apple-style-span" color="#333333" face="Arial"><span id="1161111" class="Apple-style-span" style="line-height: 26px;">        if (m_instance == null)</span></font><br /><font class="Apple-style-span" color="#333333" face="Arial"><span id="1666611" class="Apple-style-span" style="line-height: 26px;">        {</span></font><br /><font class="Apple-style-span" color="#333333" face="Arial"><span id="1116116" class="Apple-style-span" style="line-height: 26px;">            m_instance = new LazySingleton();</span></font><br /><font class="Apple-style-span" color="#333333" face="Arial"><span id="1166666" class="Apple-style-span" style="line-height: 26px;">        }</span></font><br /><font class="Apple-style-span" color="#333333" face="Arial"><span id="1611116" class="Apple-style-span" style="line-height: 26px;">        return m_instance;</span></font><br /><font class="Apple-style-span" color="#333333" face="Arial"><span id="1161161" class="Apple-style-span" style="line-height: 26px;">    }</span></font><br /><font class="Apple-style-span" color="#333333" face="Arial"><span id="1116166" class="Apple-style-span" style="line-height: 26px;">}</span></font><br /><br /><font class="Apple-style-span" color="#333333" face="Arial"><span id="1116161" class="Apple-style-span" style="line-height: 26px;">4.静态块与构造器在承中的执行顺序:</span></font><br /></p><div><div><span style="line-height: 26px;">public class TestExeuteOrder {</span></div><div><span style="line-height: 26px;"><br /></span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>public static void main(String[] args) {</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>Parent p = new ChildTest();</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>p = new ChildTest();</span></div><div><span style="line-height: 26px;"><br /></span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>}</span></div><div><span style="line-height: 26px;"><br /></span></div><div><span style="line-height: 26px;">}</span></div><div><span style="line-height: 26px;">class ChildTest extends Parent{</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>static{</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>System.out.println("in child static");</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>}</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>public ChildTest(){</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>System.out.println("in child construtor");</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>}</span></div><div><span style="line-height: 26px;">}</span></div><div><span style="line-height: 26px;"><br /></span></div><div><span style="line-height: 26px;">class Parent{</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>static{</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>System.out.println("in parent static");</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>}</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>public Parent(){</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>System.out.println("in parent construtor");</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>}</span></div><div><span id="6111666" class="Apple-style-span" style="line-height: 26px;">}</span><br /><span id="1111661" class="Apple-style-span" style="line-height: 26px;">q行l果Q?/span><br /><div><div style="line-height: 26px; ">in parent static</div><div style="line-height: 26px; ">in child static</div><div style="line-height: 26px; ">in parent construtor</div><div style="line-height: 26px; ">in child construtor</div><div style="line-height: 26px; ">in parent construtor</div><div><span id="1161116" class="Apple-style-span" style="line-height: 26px;">in child construtor</span><br /><span id="1161116" class="Apple-style-span" style="line-height: 26px;">5.成员内部c:</span><br /><div><div style="line-height: 26px; ">public class TestExeuteOrder{</div><div style="line-height: 26px; "><span style="white-space:pre"> </span>class Inner{</div><div style="line-height: 26px; "><span style="white-space:pre"> </span>void test(){</div><div style="line-height: 26px; "><span style="white-space:pre"> </span>if(TestExeuteOrder.this.flag){</div><div style="line-height: 26px; "><span style="white-space:pre"> </span>System.out.println("what a funny");</div><div style="line-height: 26px; "><span style="white-space:pre"> </span>}</div><div style="line-height: 26px; "><span style="white-space:pre"> </span>}</div><div style="line-height: 26px; "><span style="white-space:pre"> </span>}</div><div style="line-height: 26px; "><span style="white-space:pre"> </span>private boolean flag = true;</div><div style="line-height: 26px; "><span style="white-space:pre"> </span>public TestExeuteOrder(){</div><div style="line-height: 26px; "><span style="white-space:pre"> </span>new Inner().test();</div><div style="line-height: 26px; "><span style="white-space:pre"> </span>}</div><div style="line-height: 26px; "><span style="white-space:pre"> </span>public static void main(String[] args){</div><div style="line-height: 26px; "><span style="white-space:pre"> </span>new TestExeuteOrder();</div><div style="line-height: 26px; "><span style="white-space:pre"> </span>}</div><div><span id="1111116" class="Apple-style-span" style="line-height: 26px;">}</span><br /><span id="1666166" class="Apple-style-span" style="line-height: 26px;">q行l果Q?/span><br /><div><span id="1161611" class="Apple-style-span" style="line-height: 26px;">what a funny</span><br /><span id="6161116" class="Apple-style-span" style="line-height: 26px;">6.参数传递:</span><br /><div><div><span style="line-height: 26px;">public class TestExeuteOrder{</span></div><div><span style="line-height: 26px;"><br /></span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>public static void main(String[] args){</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>String a = "ello";</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>TestExeuteOrder t = new TestExeuteOrder();</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>t.change(a);</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>System.out.println(a);</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>}</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>public void change(String str){</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>str += "H";</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>}</span></div><div><span id="1611611" class="Apple-style-span" style="line-height: 26px;">}</span><br /><span id="1661116" class="Apple-style-span" style="line-height: 26px;">l果Q?/span><br /><div><span id="6616116" class="Apple-style-span" style="line-height: 26px;">ello</span><br /><span id="6161161" class="Apple-style-span" style="line-height: 26px;">7.参数传?Q?/span><br /><div><div><span style="line-height: 26px;">public class TestExeuteOrder{</span></div><div><span style="line-height: 26px;"><br /></span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>public static void main(String[] args){</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>StringBuffer x = new StringBuffer("A");</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>StringBuffer y = new StringBuffer("B");</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>change(x,y);</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>System.out.println(x+" "+y);</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>}</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>public static void change(StringBuffer a,StringBuffer b){</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>a.append(b);</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>b = a;</span></div><div><span style="line-height: 26px;"><span style="white-space:pre"> </span>}</span></div><div><span id="1616116" class="Apple-style-span" style="line-height: 26px;">}</span><br /><span id="1611166" class="Apple-style-span" style="line-height: 26px;">l果为:</span><br /><span id="6611616" class="Apple-style-span" style="line-height: 26px;">AB B</span><br /><span id="1616616" class="Apple-style-span" style="line-height: 26px;">8.</span><br /><br /><div style="line-height: 26px;"><div>public class TestExeuteOrder{</div><div></div><div><span style="white-space:pre"> </span>public static void main(String[] args){</div><div><span style="white-space:pre"> </span>String a = "good";</div><div><span style="white-space:pre"> </span>char[] b = new char[]{'a','b','c'};</div><div><span style="white-space:pre"> </span>method(a,b);</div><div><span style="white-space:pre"> </span>System.out.println("a="+a+"------>b="+new String(b));</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>public static void method(String a,char[] b){</div><div><span style="white-space:pre"> </span>a = "Test ok";</div><div><span style="white-space:pre"> </span>b[0] = 'g';</div><div><span style="white-space:pre"> </span>}</div><div></div><div>}<br />l果Q?br /><div>a=good------>b=gbc</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><font class="Apple-style-span" color="#333333" face="Arial"><span id="6111111" class="Apple-style-span" style="line-height: 26px; ">三、SQLQ?/span></font><p> </p></span></font></span><span id="6116111" class="Apple-style-span" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; "><p><font size="2">1.存储q程与函数的区别Q?br />1Q前者,E序头部声明用的是procedureQ后者,E序头部声明用的是functionQ?br />2Q前者,不需要描q返回类型,后者需要;<br />3Q前者可以作Z个独立的pl/sql语句来执行;后者不能独立运行,必须作ؓ表达式的一部分条用Q?br />4Qsql语句中不可调用procedureQ但可以调用functionQ?br />2.查询student表中name重复的记录:<br /></font></p></span><span id="6661611" class="Apple-style-span" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; font-size: small; ">select * from student where name in(select name from student group by sname having count(*) >1);</span><span id="1666611" class="Apple-style-span" style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; "><p><font class="Apple-style-span" size="2">3.table表中有两列A,B,如果A>B选择AQ如果A<B,选择BQ?br /></font></p><div><font class="Apple-style-span" size="2">select( case when s1.A>s1.B then s1.A  when s1.A<s1.B then s1.B end) re from student s1;<br /></font></div><p> </p></span><img src ="http://www.tkk7.com/GavinMiao/aggbug/373055.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2012-03-30 16:00 <a href="http://www.tkk7.com/GavinMiao/archive/2012/03/30/373055.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>sql面试?/title><link>http://www.tkk7.com/GavinMiao/archive/2011/10/20/361642.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Thu, 20 Oct 2011 03:34:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2011/10/20/361642.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/361642.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2011/10/20/361642.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/361642.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/361642.html</trackback:ping><description><![CDATA[    只有注册用户d后才能阅读该文?a href='http://www.tkk7.com/GavinMiao/archive/2011/10/20/361642.html'>阅读全文</a><img src ="http://www.tkk7.com/GavinMiao/aggbug/361642.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-10-20 11:34 <a href="http://www.tkk7.com/GavinMiao/archive/2011/10/20/361642.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>struts2面试题汇?/title><link>http://www.tkk7.com/GavinMiao/archive/2011/08/29/357480.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Mon, 29 Aug 2011 03:27:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2011/08/29/357480.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/357480.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2011/08/29/357480.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/357480.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/357480.html</trackback:ping><description><![CDATA[参考文章:<a >http://hi.baidu.com/zrmox/blog/item/35719d386cf07afe3b87cec5.html</a><br /><br />一.工作原理<br /><div><span style="font-family: Verdana, sans-serif, 宋体; line-height: 20px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; -webkit-text-size-adjust: none; ">一个请求在Struts2框架中的处理大概分ؓ以下几个步骤 <br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " />1 客户端初始化一个指向Servlet容器Q例如TomcatQ的h <br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " />2 q个hl过一pd的过滤器QFilterQ(q些qo器中有一个叫做ActionContextCleanUp的可选过滤器Q这个过滤器对于Struts2和其他框架的集成很有帮助Q例如:SiteMesh PluginQ?nbsp;<br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " />3 接着FilterDispatcher被调用,FilterDispatcher询问ActionMapper来决定这个请是否需要调用某个Action <br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " />4 如果ActionMapper军_需要调用某个ActionQFilterDispatcher把请求的处理交给ActionProxy <br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " />5 ActionProxy通过Configuration Manager询问框架的配|文Ӟ扑ֈ需要调用的Actionc?nbsp;<br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " />6 ActionProxy创徏一个ActionInvocation的实例?nbsp;<br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " />7 ActionInvocation实例使用命名模式来调用,在调用Action的过E前后,涉及到相x截器QIntercepterQ的调用?nbsp;<br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " />8 一旦Action执行完毕QActionInvocation负责Ҏ(gu)struts.xml中的配置扑ֈ对应的返回结果。返回结果通常是(但不LQ也?能是另外的一个Action链)一个需要被表示的JSP或者FreeMarker的模版。在表示的过E中可以使用Struts2 框架中承的标签。在q个q程中需要涉及到ActionMapper <br /><br /><div><span style="color: #232323; line-height: normal; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-size-adjust: auto; font-family: Arial; font-size: 10pt; ">基本要流E如下:1、客L览器发出HTTPh?、根据web.xml配置Q该h被FilterDispatcher接收?、根据struts.xml配置Q找到需要调用的ActioncdҎ(gu)Q?q过IoC方式Q将值注入给Aciton?、Action调用业务逻辑lg处理业务逻辑Q这一步包含表单验证?、Action执行完毕Q根据struts.xml中的配置扑ֈ对应的返回结果resultQƈ跌{到相应页面?、返回HTTP响应到客L览器?nbsp;</span></div><br />二、struts2标签分类Q?br />1.表单UI标签<br />2.非表单UI标签<br />3.控制标签<br />4.数据标签<br />三、ؓ什么用struts2Q?br />1.开?br />2.mvc框架<br />3.Upojo的Action<br />4.更好的标{?br />5.易测?br />6.易扩?br /><br /><br />待箋.........<br /><br /><br /></span></div><img src ="http://www.tkk7.com/GavinMiao/aggbug/357480.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-08-29 11:27 <a href="http://www.tkk7.com/GavinMiao/archive/2011/08/29/357480.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>spring面试?/title><link>http://www.tkk7.com/GavinMiao/archive/2011/08/29/357463.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Sun, 28 Aug 2011 16:38:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2011/08/29/357463.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/357463.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2011/08/29/357463.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/357463.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/357463.html</trackback:ping><description><![CDATA[    只有注册用户d后才能阅读该文?a href='http://www.tkk7.com/GavinMiao/archive/2011/08/29/357463.html'>阅读全文</a><img src ="http://www.tkk7.com/GavinMiao/aggbug/357463.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-08-29 00:38 <a href="http://www.tkk7.com/GavinMiao/archive/2011/08/29/357463.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>struts1面试题汇?/title><link>http://www.tkk7.com/GavinMiao/archive/2011/08/28/357438.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Sun, 28 Aug 2011 06:09:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2011/08/28/357438.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/357438.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2011/08/28/357438.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/357438.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/357438.html</trackback:ping><description><![CDATA[    只有注册用户d后才能阅读该文?a href='http://www.tkk7.com/GavinMiao/archive/2011/08/28/357438.html'>阅读全文</a><img src ="http://www.tkk7.com/GavinMiao/aggbug/357438.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-08-28 14:09 <a href="http://www.tkk7.com/GavinMiao/archive/2011/08/28/357438.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>hibernate面试题汇?/title><link>http://www.tkk7.com/GavinMiao/archive/2011/08/28/357436.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Sun, 28 Aug 2011 05:37:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2011/08/28/357436.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/357436.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2011/08/28/357436.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/357436.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/357436.html</trackback:ping><description><![CDATA[    只有注册用户d后才能阅读该文?a href='http://www.tkk7.com/GavinMiao/archive/2011/08/28/357436.html'>阅读全文</a><img src ="http://www.tkk7.com/GavinMiao/aggbug/357436.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-08-28 13:37 <a href="http://www.tkk7.com/GavinMiao/archive/2011/08/28/357436.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>StrutsQSpringQHibernate面试题ȝhttp://www.tkk7.com/GavinMiao/archive/2011/08/28/357434.htmlGavinMiaoGavinMiaoSun, 28 Aug 2011 04:41:00 GMThttp://www.tkk7.com/GavinMiao/archive/2011/08/28/357434.htmlhttp://www.tkk7.com/GavinMiao/comments/357434.htmlhttp://www.tkk7.com/GavinMiao/archive/2011/08/28/357434.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/357434.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/357434.html

Q{载)http://blog.csdn.net/David8631/article/details/2676615 作者:David8631
Hibernate工作原理及ؓ什么要用?

原理Q?/span>

1.         dq解析配|文?/span>

2.         dq解析映信息,创徏SessionFactory

3.         打开Sesssion

4.         创徏事务Transation

5.         持久化操?/span>

6.         提交事务

7.         关闭Session

8.         关闭SesstionFactory

 

Z么要用:

 

1.    ?/span>JDBC讉K数据库的代码做了装Q大大简化了数据讉K层繁琐的重复性代码?/span>

2.    Hibernate是一个基?/span>JDBC的主持久化框架Q是一个优U?/span>ORM实现。他很大E度的简?/span>DAO层的~码工作

3.    hibernate使用Java反射机制Q而不是字节码增强E序来实现透明性?/span>

4.    hibernate的性能非常好,因ؓ它是个轻量框架。映的灉|性很。它支持各种关系数据库,?/span>一对一到多对多的各U复杂关pR?/span>

 

2Q?span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">   Hibernate是如何gq加?/span>?

1.         Hibernate2延迟加蝲实现Q?/span>a)实体对象  b)集合Q?/span>CollectionQ?/span>

2.         Hibernate3 提供了属性的延迟加蝲功能

?/span>Hibernate在查询数据的时候,数据q没有存在与内存中,当程序真正对数据的操作时Q对象才存在与内存中Q就实现了gq加载,他节省了服务器的内存开销Q从而提高了服务器的性能?/span>

3Q?span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">   Hibernate中怎样实现cM间的关系?(如:一对多、多对多的关p?/span>)

cMcM间的关系主要体现在表与表之间的关p进行操作,它们都市对对象进行操作,我们E序中把所有的表与c都映射在一P它们通过配置文g中的many-to-one?/span>one-to-many?/span>many-to-many?/span>

4Q?span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">   说下Hibernate的缓存机?/span>

1.         内部~存存在Hibernate中又叫一U缓存,属于应用事物U缓?/span>

2.         二~存Q?/span>

a)         应用及缓?/span>

b)        分布式缓?/span>

条gQ数据不会被W三方修攏V数据大在可接受范围、数据更新频率低、同一数据被系l频J用、非              关键数据

c)  W三方缓存的实现

5Q?span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">   Hibernate的查询方?/span>

Sql?/span>Criteria,object comptosition

HqlQ?/span>

1?span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">  属性查?/span>

2?span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">  参数查询、命名参数查?/span>

3?span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">  兌查询

4?span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">  分页查询

5?span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">  l计函数

 

6Q?span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">   如何优化HibernateQ?/span>

1.         使用双向一对多兌Q不使用单向一对多

2.         灉|使用单向一对多兌

3.         不用一对一Q用多对一取代

4.         配置对象~存Q不使用集合~存

5.         一对多集合使用Bag,多对多集合?/span>Set

6.         l承cM用显式多?/span>

7.         表字D要,表关联不要怕多Q有二~存撑腰

 

7Q?span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">   Struts工作机制Qؓ什么要使用StrutsQ?/span>

工作机制Q?/span>

Struts的工作流E?/span>:

  ?/span>web应用启动时就会加载初始化ActionServlet,ActionServlet?/span>

  struts-config.xml文g中读取配|信?/span>,把它们存攑ֈ各种配置对象

  ?/span>ActionServlet接收C个客戯求时,执行如下流E?/span>.

    -(1)索和用户h匚w?/span>ActionMapping实例,如果不存?/span>,p回请求\径无效信?/span>;

    -(2)如果ActionForm实例不存?/span>,创Z?/span>ActionForm对象,把客h交的表单数据保存?/span>ActionForm           对象?/span>;

    -(3)Ҏ(gu)配置信息军_是否需要表单验?/span>.如果需要验?/span>,p?/span>ActionForm?/span>validate()Ҏ(gu);

    -(4)如果ActionForm?/span>validate()Ҏ(gu)q回null或返回一个不包含ActionMessage?/span>ActuibErrors对象,                pC单验证成?/span>;

    -(5)ActionServletҎ(gu)ActionMapping所包含的映信息决定将h转发l哪?/span>Action,如果相应?/span>                    Action实例不存?/span>,先创徏q个实例,然后调用Action?/span>execute()Ҏ(gu);

    -(6)Action?/span>execute()Ҏ(gu)q回一?/span>ActionForward对象,ActionServlet在把客户h转发l?/span>                               ActionForward对象指向?/span>JSPlg;

    -(7)ActionForward对象指向JSPlg生成动态网?/span>,q回l客?/span>;

Z么要用:

JSP?/span>Servlet?/span>JavaBean技术的出现l我们构建强大的企业应用pȝ提供了可能。但用这些技术构建的pȝ非常的繁乱,所以在此之上,我们需要一个规则、一个把q些技术组lv来的规则Q这是框架Q?/span>Struts便应q而生?/span>

ZStruts开发的应用?/span>3cȝ件构成:控制器组件、模型组件、视囄?/span>

8Q?span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">   Struts?/span>validate框架是如何验证的Q?/span>

?/span>struts配置文g中配|具体的错误提示Q再?/span>FormBean中的validate()Ҏ(gu)具体调用?/span>

9Q?span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">   说下Struts的设计模?/span>

MVC模式:  web应用E序启动时就会加载ƈ初始?/span>ActionServler。用h交表单时Q一个配|好?/span>ActionForm对象被创建,q被填入表单相应的数据,ActionServlerҎ(gu)Struts-config.xml文g配置好的讄军_是否需要表单验证,如果需要就调用ActionForm?/span>ValidateQ)验证后选择请求发送到哪个ActionQ如?/span>Action不存在,ActionServlet会先创徏q个对象Q然后调?/span>Action?/span>executeQ)Ҏ(gu)?/span>ExecuteQ)?/span>ActionForm对象中获取数据,完成业务逻辑Q返回一?/span>ActionForward对象Q?/span>ActionServlet再把客户h转发l?/span>ActionForward对象指定?/span>jsplgQ?/span>ActionForward对象指定?/span>jsp生成动态的|页Q返回给客户?/span>

单例模式

Factory(工厂模式)Q?/span>

定义一个基c?/span>===》实现基cL法(子类通过不同的方法)===》定义一个工厂类Q生成子cd例)

===》开发h员调用基cL?/span>

Proxy(代理模式)

10Q?span style="font: normal normal normal 7pt/normal 'Times New Roman'; ">              spring工作机制及ؓ什么要?/span>?

 

1.spring mvch有的h都提交给DispatcherServlet,它会委托应用pȝ的其他模块负责负责对hq行真正的处理工作?/span>

2.DispatcherServlet查询一个或多个HandlerMapping,扑ֈ处理h?/span>Controller.

3.DispatcherServlet误求提交到目标Controller

4.Controllerq行业务逻辑处理后,会返回一?/span>ModelAndView

5.Dispathcher查询一个或多个ViewResolver视图解析?/span>,扑ֈModelAndView对象指定的视囑֯?/span>

6.视图对象负责渲染q回l客L?/span>

Z么用Q?/span>

{AOP 让开发h员可以创建非行ؓ性的x点,UCؓ横切x点,q将它们插入到应用程序代码中。?/span> AOP 后,公共服务   Q比如日志、持久性、事务等Q就可以分解成方面ƈ应用到域对象上,同时不会增加域对象的对象模型的复杂性?/span>

               IOC 允许创徏一个可以构造对象的应用环境Q然后向q些对象传递它们的协作对象。正如单?/span> 倒置 所表明的,IOC 像?/span>      q来?/span> JNDI。没有用一堆抽象工厂、服务定位器、单元素Q?/span>singletonQ和直接构造(straight constructionQ,每一个对象都是用     其协作对象构造的。因此是由容器管理协作对象(collaboratorQ?/span>

Spring即一?/span>AOP框架Q也是一IOC容器?/span> Spring 最好的地方是它有助于?zhn)替换对象。有?/span> SpringQ只要用 JavaBean属性和配置文g加入依赖性(协作对象Q。然后可以很Ҏ(gu)地在需要时替换hcM接口的协作对象?/span>}



GavinMiao 2011-08-28 12:41 发表评论
]]>
受打d的疯?--------js操作html元素http://www.tkk7.com/GavinMiao/archive/2011/08/25/357251.htmlGavinMiaoGavinMiaoThu, 25 Aug 2011 05:25:00 GMThttp://www.tkk7.com/GavinMiao/archive/2011/08/25/357251.htmlhttp://www.tkk7.com/GavinMiao/comments/357251.htmlhttp://www.tkk7.com/GavinMiao/archive/2011/08/25/357251.html#Feedback0http://www.tkk7.com/GavinMiao/comments/commentRss/357251.htmlhttp://www.tkk7.com/GavinMiao/services/trackbacks/357251.html阅读全文

GavinMiao 2011-08-25 13:25 发表评论
]]>
面试题ȝ1Q?/title><link>http://www.tkk7.com/GavinMiao/archive/2011/08/18/356799.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Thu, 18 Aug 2011 09:16:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2011/08/18/356799.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/356799.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2011/08/18/356799.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/356799.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/356799.html</trackback:ping><description><![CDATA[1.<br /><span id="6166161" class="Apple-style-span" style="color: #333333; font-family: Arial; line-height: 26px; "><span style="font-size: 10.5pt; font-family: 'Times New Roman'; ">问: </span> <span style="font-size: 10.5pt; font-family: 宋体; ">抽象cL否可l承实体c?/span> <span style="font-size: 10.5pt; font-family: 'Times New Roman'; ">(concrete class)<br /><div><span style="font-family: Arial; "><span style="font-size: 10.5pt; font-family: 'Times New Roman'; ">{:</span> <span style="font-size: 10.5pt; font-family: 宋体; "></span></span><span id="1111111" class="Apple-style-span" style="font-family: 宋体; line-height: 21px; color: #000000; ">可以l承Q但是和实体cȝl承一P也要求父cdl承Qƈ且拥有子cd讉K到的构造器?br />2.<br />问:join、inner join、full join、left join、right join的区别:<br /><div><span style="font-family: arial, 宋体, sans-serif; line-height: 24px; "><pre id="best-answer-content" mb10"="" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; white-space: pre-wrap; word-wrap: break-word; zoom: 1; line-height: 22px; "><div><span style="color: #333333; font-family: 'Times New Roman'; line-height: 26px; white-space: normal; ">{:</span></div>SELECT * FROM A inner join B ON A.F1 = B.F1, 内连接,昄的查询结果,是查询条gA 的必ȝ于B的数据; <br />SELECT * FROM A left join B ON A.F1 = B.F1 ,左连接,昄的查询结果,是左边表的全部Q和双表的W合查询条g的数据?br />SELECT * FROM A right join B ON A.F1 = B.F1 ,双接,昄的查询结果,是右边表的全部,和左边表的符合查询条件的数据?br />join = inner joinQ?br />left join = left outter joinQ?<br /><div><span style="font-family: arial, 宋体, sans-serif; line-height: 24px; white-space: normal; "><pre id="best-answer-content" mb10"="" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; white-space: pre-wrap; word-wrap: break-word; zoom: 1; line-height: 22px; ">right join = right outter joinQ?<br /><div><span style="font-family: arial, 宋体, sans-serif; line-height: 24px; white-space: normal; "><pre id="best-answer-content" mb10"="" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; white-space: pre-wrap; word-wrap: break-word; zoom: 1; line-height: 22px; ">full join = full outter joinQ?</pre></span></div></pre></span></div><div><span style="font-family: arial, 宋体, sans-serif; line-height: 24px; white-space: normal; "><pre id="best-answer-content" mb10"="" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; white-space: pre-wrap; word-wrap: break-word; zoom: 1; line-height: 22px; ">SELECT * FROM A full join B ON A.F1 = B.F1Q全q接Q?昄的查询结果,<div style="display: inline-block; "><div><span id="1161111" class="Apple-style-span" style="font-family: arial, 宋体, sans-serif; line-height: 24px; white-space: normal; "><pre class="reply-text mb10" id="content-52296886" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; white-space: pre-wrap; word-wrap: break-word; zoom: 1; ">左右表未q接的内容全部显C;</pre></span></div></div></pre></span></div>egQ(来自Q?a >http://zhidao.baidu.com/question/113160374.html?fr=qrl&cid=74&index=4&fr2=query</a>Q?br /><div style="display: inline-block; "><div><span id="6661116" class="Apple-style-span" style="font-family: arial, 宋体, sans-serif; line-height: 24px; white-space: normal; "><pre id="best-answer-content" class="reply-text mb10" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; white-space: pre-wrap; word-wrap: break-word; zoom: 1; line-height: 22px; ">[TEST@ORA1] SQL>select * from a; ~号 姓名 ---- ---------- 1000 张三 2000 李四 3000 王五 [TEST@ORA1] SQL>select * from b; ~号 商品 ---- ---------- 1000 ?sh)视? 2000 录像? 4000 自行? [TEST@ORA1] SQL>set null I?-q里Z昄斚w我把NULL定义成了[I值] [TEST@ORA1] SQL>select a.*,b.* from a inner join b on a.~号=b.~号; ~号 姓名 ~号 商品 ---- ---------- ---- ---------- 1000 张三 1000 ?sh)视? 2000 李四 2000 录像? [TEST@ORA1] SQL>select a.*,b.* from a left join b on a.~号=b.~号; ~号 姓名 ~号 商品 ---- ---------- ---- ---------- 1000 张三 1000 ?sh)视? 2000 李四 2000 录像? 3000 王五 I?I? [TEST@ORA1] SQL>select a.*,b.* from a right join b on a.~号=b.~号; ~号 姓名 ~号 商品 ---- ---------- ---- ---------- 1000 张三 1000 ?sh)视? 2000 李四 2000 录像? I?I? 4000 自行? [TEST@ORA1] SQL>select a.*,b.* from a full join b on a.~号=b.~号; ~号 姓名 ~号 商品 ---- ---------- ---- ---------- 1000 张三 1000 ?sh)视? 2000 李四 2000 录像? 3000 王五 I?I? I?I? 4000 自行?/pre></span></div></div></pre></span></div></span></div></span></span><img src ="http://www.tkk7.com/GavinMiao/aggbug/356799.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-08-18 17:16 <a href="http://www.tkk7.com/GavinMiao/archive/2011/08/18/356799.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jdbcq接数据?/title><link>http://www.tkk7.com/GavinMiao/archive/2011/08/18/356754.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Wed, 17 Aug 2011 17:23:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2011/08/18/356754.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/356754.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2011/08/18/356754.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/356754.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/356754.html</trackback:ping><description><![CDATA[    只有注册用户d后才能阅读该文?a href='http://www.tkk7.com/GavinMiao/archive/2011/08/18/356754.html'>阅读全文</a><img src ="http://www.tkk7.com/GavinMiao/aggbug/356754.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-08-18 01:23 <a href="http://www.tkk7.com/GavinMiao/archive/2011/08/18/356754.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>struts1和struts2的区?/title><link>http://www.tkk7.com/GavinMiao/archive/2011/08/10/356269.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Wed, 10 Aug 2011 11:22:00 GMT</pubDate><guid>http://www.tkk7.com/GavinMiao/archive/2011/08/10/356269.html</guid><wfw:comment>http://www.tkk7.com/GavinMiao/comments/356269.html</wfw:comment><comments>http://www.tkk7.com/GavinMiao/archive/2011/08/10/356269.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/GavinMiao/comments/commentRss/356269.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/GavinMiao/services/trackbacks/356269.html</trackback:ping><description><![CDATA[转蝲Q?a href="http://www.tkk7.com/tokyo2006/archive/2009/05/09/269734.html">http://www.tkk7.com/tokyo2006/archive/2009/05/09/269734.html<br /><br /></a><div><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; "><p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; line-height: 19px; font-size: 13px; ">Action c? <br />• Struts1要求Actioncȝ承一个抽象基cRStruts1的一个普遍问题是使用抽象cȝE而不是接口。(<span style="color: #ff0000; ">侵入式编E,不赞?/span>Q?nbsp;<br />• Struts 2 Actioncd以实C个Action接口Q也可实现其他接口,使可选和定制的服务成为可能。Struts2提供一个ActionSupport基类d?常用的接口。Action接口不是必须的,M有execute标识的POJO对象都可以用作Struts2的Action对象?/p><p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; line-height: 19px; font-size: 13px; ">U程模式: <br />• Struts1 Action是单例模式ƈ且必LU程安全的,因ؓ仅有Action的一个实例来处理所有的h。单例策略限制了Struts1 Action能作的事Qƈ且要在开发时特别心。Action资源必须是线E安全的或同步的?Q?span style="color: #ff0000; ">安全性不如STRUTS2</span>)<br />• Struts2 Action对象为每一个请求生一个实例,因此没有U程安全问题。(实际上,servlet容器l每个请求生许多可丢弃的对象,q且不会D性能和垃圑֛攉题)<br />Servlet 依赖: <br />• Struts1 Action 依赖于Servlet API ,因ؓ当一个Action被调用时HttpServletRequest ?HttpServletResponse 被传递给executeҎ(gu)?(依赖性太强,耦合度太高)<br />• Struts 2 Action不依赖于容器Q允许Actionq容器单独被测试。如果需要,Struts2 Action仍然可以讉K初始的request和response。但是,其他的元素减或者消除了直接讉KHttpServetRequest ?HttpServletResponse的必要性?br />可测? <br />• 试Struts1 Action的一个主要问题是executeҎ(gu)暴露了servlet APIQ这使得试要依赖于容器Q。一个第三方扩展Q-Struts TestCaseQ-提供了一套Struts1的模拟对象(来进行测试)?Q?span style="color: #ff0000; ">对于TDD方式~程带来不便</span>Q?br />• Struts 2 Action可以通过初始化、设|属性、调用方法来试Q?#8220;依赖注入”支持也ɋ试更容易?br />捕获输入: Q?span style="color: #ff0000; ">使编Eh员更加专注于自己的业务逻辑</span>Q?br />• Struts1 使用ActionForm对象捕获输入。所有的ActionForm必须l承一个基cR因为其他JavaBean不能用作ActionFormQ开发者经常创建多余的cL莯入。动态BeanQDynaBeansQ可以作为创ZlActionForm的选择Q但是,开发者可能是在重新描q?创徏)已经存在的JavaBeanQ仍然会D有冗余的javabeanQ?nbsp;<br />• Struts 2直接使用Action属性作入属性,消除了对W二个输入对象的需求。输入属性可能是有自??属性的rich对象cd。Action属性能够通过web面上的taglibs讉K。Struts2也支持ActionForm模式。rich对象cdQ包括业务对象,能够用作输入/输出对象。这UModelDriven Ҏ(gu)简化了taglib对POJO输入对象的引用?/p><p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; line-height: 19px; font-size: 13px; ">表达式语aQ?Q?span style="color: #ff0000; ">使得前端的VIEW变的更加的灵zd?/span>Q?br />• Struts1 整合了JSTLQ因此用JSTL EL。这UEL有基本对象图遍历Q但是对集合和烦引属性的支持很弱?nbsp;<br />• Struts2可以使用JSTLQ但是也支持一个更强大和灵zȝ表达式语aQ-"Object Graph Notation Language" (OGNL).</p><p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; line-height: 19px; font-size: 13px; ">l定值到面QviewQ? Q?span style="color: #ff0000; ">方便的读取变量的?/span>Q?br />• Struts 1使用标准JSP机制把对象绑定到面中来讉K?nbsp;<br />• Struts 2 使用 "ValueStack"技术,使taglib能够讉KD不需要把你的面QviewQ和对象l定h。ValueStack{略允许通过一pd名称相同但类型不同的属性重用页面(viewQ?nbsp;<br />  <br />cd转换Q?Q?span style="color: #ff0000; ">再次体现OGNL的强?/span>Q?br />• Struts 1 ActionForm 属性通常都是Stringcd。Struts1使用Commons-Beanutilsq行cd转换。每个类一个{换器Q对每一个实例来说是不可配置的?nbsp;<br />• Struts2 使用OGNLq行cd转换。提供基本和常用对象的{换器?/p><p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; line-height: 19px; font-size: 13px; ">校验Q?Q?span style="color: #ff0000; ">又是节省~程工作量的好方?/span>Q?br />• Struts 1支持在ActionForm的validateҎ(gu)中手动校验,或者通过Commons Validator的扩展来校验。同一个类可以有不同的校验内容Q但不能校验子对象?nbsp;<br />• Struts2支持通过validateҎ(gu)和XWork校验框架来进行校验。XWork校验框架使用为属性类cd定义的校验和内容校验Q来支持chain校验子属?/p><p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; line-height: 19px; font-size: 13px; ">Action执行的控Ӟ Q?span style="color: #ff0000; ">Actions的彼此关联在STRUTS2下变的弱了很多了</span>Q?br />• Struts1支持每一个模块有单独的Request ProcessorsQ生命周期)Q但是模块中的所有Action必须׃n相同的生命周期?nbsp;<br />• Struts2支持通过拦截器堆栈(Interceptor StacksQؓ每一个Action创徏不同的生命周期。堆栈能够根据需要和不同的Action一起用?br /></p><p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; line-height: 19px; font-size: 13px; ">国内很多公司虽然用的是完整的框架Q但是在节约成本和提高效率的前提下,q是应该考虑下技术更新的Q恩Q恩~~~~<br />我觉得最吸引E序员升U的原因是用Struts 2Ӟ开发一个ActionQ你Ҏ(gu)׃会感觉得到这是一个ActionQ实质上是一个有executeҎ(gu)的POJOc,你在里面看不CQ何request, response之类的东西,q给~写单元试 什么的都带来了很大的方ѝ由于request和response是由于容器负责实例化的,所以在Struts 1 中要对Actioncȝ接进行测试是比较困难的?Struts 2中可以很方便C用像自动完成、TAB面{,需要AJAX实现的功能,有丰富的标签库。不需要像Struts 1那样q需要写服务器端验证的html:error标签。除了对传统JSP的支持之外,对于FreeMaker和Velocity{模板语a有很好的支持?Struts 2有着丰富的文档、教E和CZQshowcaseQWebWork的经典示例演C)Q,늛了近乎所 有的功能Q?nbsp;<br />Struts2的文档达55M之大可见其文档之?/p></span></div><a href="http://www.tkk7.com/tokyo2006/archive/2009/05/09/269734.html"></a><img src ="http://www.tkk7.com/GavinMiao/aggbug/356269.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-08-10 19:22 <a href="http://www.tkk7.com/GavinMiao/archive/2011/08/10/356269.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>лǵվܻԴȤ</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> վ֩ģ壺 <a href="http://cqkalai.com" target="_blank">þùѾƷ</a>| <a href="http://cdessc.com" target="_blank">㽶Ƶ߲</a>| <a href="http://www-554757.com" target="_blank">99Ʒ</a>| <a href="http://46339cc.com" target="_blank">޾ƷִִˬAƬ</a>| <a href="http://hmjx-tape.com" target="_blank">av߹ۿҰ</a>| <a href="http://xiaomaomi8.com" target="_blank">߹ۿƬڲ</a>| <a href="http://77110524.com" target="_blank">޹av</a>| <a href="http://yisaoma.com" target="_blank">ĻƵ</a>| <a href="http://yw323.com" target="_blank">AVƬ</a>| <a href="http://dzhankong.com" target="_blank">MM1313޾Ʒþ</a>| <a href="http://bet06966.com" target="_blank">AV鶹Խ </a>| <a href="http://55118885.com" target="_blank">Ʒ޾Ʒ</a>| <a href="http://junyehome.com" target="_blank">޵һҳպר</a>| <a href="http://1314xxx.com" target="_blank">޳˹Ʒ</a>| <a href="http://3789re.com" target="_blank">ۺAVһҳ</a>| <a href="http://wxyz2.com" target="_blank">24Сʱձwwwѵ</a>| <a href="http://svvnn.com" target="_blank">ѿƵվ</a>| <a href="http://1000hu.com" target="_blank">Ƶһ߹ۿ </a>| <a href="http://www876444.com" target="_blank">Av߲</a>| <a href="http://wbkk88.com" target="_blank">޾Ʒ˳ëƬ</a>| <a href="http://sd-ll.com" target="_blank">߹ۿ˳Ƶ</a>| <a href="http://horticartf.com" target="_blank">ձһþ</a>| <a href="http://116qc.com" target="_blank">þþѵľƷ</a>| <a href="http://w5524.com" target="_blank">պƵ</a>| <a href="http://wwwbi757.com" target="_blank">һɫþ88ۺ޾Ʒ</a>| <a href="http://szzdjl.com" target="_blank">AVˬҹҹ</a>| <a href="http://jinguwj.com" target="_blank">޵ӰպƷ</a>| <a href="http://zzdyzj.com" target="_blank">޹Ʒþþ</a>| <a href="http://13813855.com" target="_blank">޹ۺ</a>| <a href="http://www611rr.com" target="_blank">Ʒާv벥</a>| <a href="http://jybelt.com" target="_blank">ղƷaëƬþ</a>| <a href="http://jomujy.com" target="_blank">þþƷA㽶 </a>| <a href="http://b7277.com" target="_blank">ֻavַ</a>| <a href="http://x5k9.com" target="_blank">ѹۿaƵ</a>| <a href="http://lkzrgy.com" target="_blank">Ƶѹۿˬˬˬ</a>| <a href="http://fsweicheng.com" target="_blank">þûɫվ</a>| <a href="http://jjesqc.com" target="_blank">ѿ߿Aվ</a>| <a href="http://331927.com" target="_blank">av˾Ʒ</a>| <a href="http://cjsyw123.com" target="_blank">þ޾ƷƷ</a>| <a href="http://6777s.com" target="_blank">˺ݺۺϾþ</a>| <a href="http://by23336.com" target="_blank">޾Ʒһ23Ŀ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>