自由飛翔

          我在仰望,java之上

          統計

          留言簿(2)

          我關注的blog

          閱讀排行榜

          評論排行榜

          面試題(ERP行業)

          //此句,編譯無法通過,Cannot make a static reference to the non-static field b
          1.arrayList、linkedList、vector的區別
          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.
          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)  編輯  收藏 所屬分類: 面試題

          主站蜘蛛池模板: 麦盖提县| 上杭县| 宜宾市| 达孜县| 石台县| 巫溪县| 忻州市| 镇康县| 木兰县| 大城县| 扶绥县| 西林县| 阳信县| 卓资县| 凤城市| 丰原市| 大足县| 章丘市| 莫力| 宁远县| 延寿县| 青神县| 青阳县| 三穗县| 奉贤区| 册亨县| 鄂尔多斯市| 东宁县| 黄龙县| 沂源县| 大邑县| 平凉市| 盘山县| 孝感市| 彭州市| 英吉沙县| 五常市| 吴江市| 青浦区| 松江区| 平山县|