1、把下面代码不完善的部分指出来(下面代码全部运行通过) 1.ArrayList list = new ArrayList(5);
 2.temp.getType() == true ? 1 : 0
 3.String str = “937”;
 if (str.equals(“938”)) {
    ………………..
 }
 4 .String s1 = “123”;
    String s2 = s1.toString();
 5. String strA = “abc”;
    String strB = “cde”;
    String strC = “fgh”;
    String strD = strA + strB + strC;
2.HTTPSEVLET有哪些方法?DoPost和DoGet有什么区别?DoGet是在什么方法里面被调用?3.写一个类,有時候需要重寫hashcode 和equals方法,說說這兩個方法的作用,還有什么時候需要重寫?4.<input type=”button” value=”确认” disabled>,这个显示出来什么样的?5.用js让页面上的所有input标签的内容都不显示6.写一个自定义标签需要继承什么类,怎么写7.Js弹出警告,确认和提示的命令是什么。8.写一段sql,描述group by 和having的用法。(oracle)9.getAttribute和 getParameter的区别,哪一个可以得到url ? 后面的参数10.<textarea name=”text”  cols=”30”  rows=”5”  size=”80”> 有什么问题?12.Pl/sql游標卡尺如何中斷遍歷?13.readonly和disabled有什么區別?14.下面哪幾個類可以執行iteritor?TreeSet Hashmap Arraylist ArraySet?15.寫一個SQL來獲得ORACLE中的系統時間?

解决方案 »

  1.   

    15.寫一個SQL來獲得ORACLE中的系統時間?
    date()
      

  2.   

    select sysdate from dual
      

  3.   


    1.ArrayList list = new ArrayList(5);
    List list= new ArrayList(5); 2.temp.getType() == true ? 1 : 0
    肯定会报错
     3.String str = “937”;
     if (str.equals(“938”)) {
      ………………..
     }
     4 .String s1 = “123”;
      String s2 = s1.toString();
    没得必要toString();
     5. String strA = “abc”;
      String strB = “cde”;
      String strC = “fgh”;
      String strD = strA + strB + strC;
    StringBuffer strD=new StringBuffer();
    strD.append(“abc”).append(“cde”).append(“fgh”);2.HTTPSEVLET有哪些方法?DoPost和DoGet有什么区别?DoGet是在什么方法里面被调用?
    dopost提交比较安全,没长度限制。goget反之。goGet是在service();4.<input type=”button” value=”确认” disabled>,这个显示出来什么样的?
    不可点击
      

  4.   

    3.若一个类对象需要放在set中时需要同时覆盖equals、hashcode方法,先取hashcode通过哈希散列运算得到一个余数,看该余数位置上是否存在值,若存在值则继续通过equals比较。因为:不同的对象可能hashcode值是相同的。
      

  5.   

    9.getAttribute和 getParameter的区别,哪一个可以得到url ? 后面的参数getParameter 这个可以
      

  6.   

    8.写一段sql,描述group by 和having的用法。(oracle)你试下,不一定对。
    select name from bigclass group by name having name not is null;
      

  7.   

    1.ArrayList list = new ArrayList(5);List list = new ArrayList(); 2.temp.getType() == true ? 1 : 0temp.getType()==(true?1:0); 3.String str = “937”;
     if (str.equals(“938”)) {
      ………………..
     }
     4 .String s1 = “123”;
      String s2 = s1.toString();String s1="123";
    String s2 = s1; 5. String strA = “abc”;
      String strB = “cde”;
      String strC = “fgh”;
      String strD = strA + strB + strC;StringBuffer sb = new StringBuffer();
    String strA = “abc”;
    String strB = “cde”;
    String strC = “fgh”;
    sb.append(strA);
    sb.append(strB);
    sb.append(strC);
    String strD = sb.toString();
      

  8.   

    disabled 就是传说中的灰体
      

  9.   


    group 没有使用聚合函数的列,必须出现在group by后面。having跟于gtoup by后面,显示特定的组;
    select a count(b) from table group by a having count(b)>2