面試題(ERP行業)
//此句,編譯無法通過,Cannot make a static reference to the non-static field b
2.寫幾種J2EE規范并簡要描述
3.什么是設計模式?用過哪些設計模式?
4.OO的四大特性是哪些?并簡要描述
5.方法重載、多態概念及簡要描述;
6.sql常用的優化方法有哪些?
7.sleep()與wait()的區別?
8.
public class TestException {
public static void main(String[] args) {
int i = 1;
switch(i){
case 0:
System.out.println(0);
break;
case 1:
System.out.println(1);
default:
System.out.println(4);
case 2:
System.out.println(2);
case 3:
System.out.println(3);
}
}
}
1
4
2
3
9.HashTable和HashMap的區別
10.怎樣理解mvc模式?
11.抽象類、接口的區別?
12.智力題:
有1-7號,7塊地,S、U、V、W、X 5個遺產繼承者,
S若繼承2號,不能繼承3號;
3號和4號不能同時繼承;
S若繼承一塊或多塊地,則U不能繼承
1塊地不能被2人合分;
問:若S繼承2號地,剩余3個人中,不能同時哪2塊地?
A:1和6 B:1和7 c:3和7 d:1和5 e:1和3
13.
9.HashTable和HashMap的區別
10.怎樣理解mvc模式?
11.抽象類、接口的區別?
12.智力題:
有1-7號,7塊地,S、U、V、W、X 5個遺產繼承者,
S若繼承2號,不能繼承3號;
3號和4號不能同時繼承;
S若繼承一塊或多塊地,則U不能繼承
1塊地不能被2人合分;
問:若S繼承2號地,剩余3個人中,不能同時哪2塊地?
A:1和6 B:1和7 c:3和7 d:1和5 e:1和3
13.
public class TestKnowleage5 {
static int a;
int b,c=0;
public static void main(String[] args){
a++;
b++;//此句,編譯無法通過,Cannot make a static reference to the non-static field b
c++; //此句,編譯無法通過,cannot make a static reference to the non-static field c
}
}
Gavin
posted on 2012-04-10 21:59 GavinMiao 閱讀(522) 評論(0) 編輯 收藏 所屬分類: 面試題