自由飛翔

          我在仰望,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)  編輯  收藏 所屬分類: 面試題

          主站蜘蛛池模板: 巴彦淖尔市| 十堰市| 静海县| 天镇县| 正镶白旗| 吉木萨尔县| 泾阳县| 即墨市| 长春市| 石首市| 大新县| 青冈县| 临湘市| 南江县| 兴业县| 梁河县| 嘉峪关市| 青铜峡市| 镇宁| 金川县| 万山特区| 苏州市| 仪征市| 嵩明县| 渑池县| 广灵县| 洛浦县| 绥化市| 嫩江县| 邵东县| 浦东新区| 平果县| 咸阳市| 合川市| 陵川县| 新泰市| 渝中区| 绍兴县| 阜宁县| 民县| 长汀县|