面向对象概念:
①面向对象基本特征 ②什么叫多态和重载,它们有什么区别? ③用你自己的话描述你理解的j2ee的本质特征是什么? 1. insert into b (select * from a where a.indexid not in (select indexid from b)); 2. function fieldCheck(){ var unitprice = document.forms[0].unitprice; if(unitprice.value==''){ alert("unitprice值域为空!"); return false; } return true; } 3.1 String value = (String)session.getAttribute("studentname"); //然后判断value是否为空,再进行下面的操作 3.2 scope的范围有四种, page,request,session,application 在scope为page或者requst的时候javabean的id可以相同 4.1没看明白题目 4.2 a=6,b=2,c=-6 5 Vector v;//前提是该对象已知 int i=0; for(Iterator it = v.iterator();it.hasNext();){ String element = (String)it.next(); i++; System.out.println("第"+i+"个元素为:"+element); } 6. private void mapPrint(Map map){ if(!map.isEmpty()){ java.util.Set keyset = map.keySet(); for(java.util.Iterator it = keyset.iterator();it.hasNext();){ String key = (String) it.next(); Integer value = (Integer)map.get(key); System.out.println(key+"---"+value.toString()); } } } 7.private void mapFill(){ HashMap map = new HashMap(); String str="001,A001;002,A002;003,A003"; java.util.StringTokenizer st = new java.util.StringTokenizer(str,";"); while(st.hasMoreTokens()){ String string = st.nextToken(); String key = string.substring(0,3); String value = string.substring(4,string.length()); map.put(key,value); } }求关注: 。