亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mockcert07.txt

?? 一道JAVA方面的試題 很不錯的 我很喜歡
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
    top.add(new Checkbox("Cbox"));
    f.add(top, BorderLayout.NORTH);
    Panel left = new Panel();
    left.setLayout(new GridLayout(1, 2));
    left.add(new Scrollbar(Scrollbar.VERTICAL));
    left.add(new Button("Button"));
    f.add(left, BorderLayout.WEST);
    f.setVisible(true);
  }
}

Only One: 
1) The checkbox
2) The scrollbar
3) The button
4) The "top" panel
5) The "left" panel


Question 21
===========================================================
What is the result of attempting to compile the following code? 
 1.   class OutThing {
 2.
 3.     class AnInner {
 4.       public int i;
 5.     }
 6.
 7.     public static void main(String[] args) {
 8.       AnInner aninn = new AnInner();
 9.       aninn.i = 15;
10.    }
11.  }

Only One: 
1) he code compiles without error.
2) Compiler error on line 4.
3) Compiler error on line 8.
4) Compiler error on line 9.


Question 22
===========================================================
When application A below is run, two threads are created and started. Each thread prints a message just before terminating. Which thread prints its message first? 
class A {
  private Thread t1, t2;
  public static void main(String[] args) {
    new A();
  }
  A() {
    t1 = new T1();
    t2 = new T2();
    t1.start();
    t2.start();
  }
  class T1 extends Thread {
    public void run() {
      try {
        sleep(5000); // 5 secs
      }
      catch (InterruptedException e) { }
      System.out.println("t1 done");
    }
  }
  class T2 extends Thread {
    public void run() {
      try {
        t1.sleep(10000); // 10 secs
      }
      catch (InterruptedException e) { }
      System.out.println("t2 done");
    }
  }
}

Only One: 
1) t1
2) t2


Question 23
===========================================================
If a Java program imports a large number of classes, what is the runtime impact?

Only One: 
1) There is no impact at runtime.
2) There is a slight impact at runtime.
3) There is a moderate impact at runtime.
4) There is a significant impact at runtime.


Question 24
===========================================================
Which of the lines below are printed out by the following application? 
 1. import java.io.IOException;
 2. class SubEx extends IOException { }
 3.
 4. class A {
 5.   public static void main(String[] args) {
 6.     try {
 7.       thud();
 8.     }
 9.     catch (SubEx x) {
10.       System.out.println("main() caught SubEx");
11.     }
12.     catch (IOException x) {
13.       System.out.println(
14.         "main() caught IOException");
15.     }
16.     catch (Exception x) {
17.       System.out.println(
18.         "main() caught Exception");
19.     }
20.   }
21.
22.   static void thud() throws IOException {
23.     try {
24.       throw new SubEx();
25.     }
26.     catch (SubEx x) {
27.       System.out.println("thud() caught SubEx");
28.       throw new IOException();
29.     }
30.     catch (IOException x) {
31.       System.out.println(
32.         "thud() caught IOException");
33.       throw new IOException();
34.     }
35.     catch (Exception x){
36.       System.out.println(
37.         "thud() caught Exception");
38.     }
39.   }
40. }

Mutiple: 
1) "main() caught SubEx"
2) "main() caught IOException"
3) "main() caught Exception"
4) "thud() caught SubEx"
5) "thud() caught IOException"


Question 25
===========================================================
What happens when you attempt to compile the following code? 
1. class A           { static void foo(int i) {}; }
2. class B extends A { void foo(int i) {}; }

Only One: 
1) Compiler error at line 1.
2) Compiler error at line 2.
3) No compiler error.


Question 26
===========================================================
Consider the following class definition: 
class Parent {
  void abcde(int i) throws IOException {
    if (i > 10) throw new IOException();
  }
}
Which of the following methods would be allowed in a subclass of Parent?

Mutiple: 
1) protected void abcde(int i) throws IOException
2) private void abcde(int i) throws IOException
3) void abcde(int j) throws IOException
4) float abcde(int i) throws IOException
5) void abcde(int i)


Question 27
===========================================================
What is the value of the following expression?
Math.round(Math.random() + 2.50001);

Only One: 
1) 2
2) 3
3) It is impossible to say.


Question 28
===========================================================
What one statement is true about the following code? 
1. Map map = new HashMap();
2. map.put("key", "Hello");
3. map.put("key", "Goodbye");

Only One: 
1) Line 3 generates a compiler error.
2) An exception is thrown at line 3.
3) After line 3 executes, the map contains one entry: the string "Hello".
4) After line 3 executes, the map contains one entry: the string "Goodbye".
5) After line 3 executes, the map contains two entries.


Question 29
===========================================================
A computer is manufactured and shipped to Tibet. When the computer's operating system is installed, it is told that it is in the Tibet locale. When the computer executes the following line, what encoding is used by the File Reader?
FileReader fr = new FileReader("8859_1");

Only One: 
1) Tibetan
2) US ASCII


Question 30
===========================================================
What happens when you try to compile and execute the following application? (Choose all that apply.) 
 1. class Switcheroo {
 2.   public static void main(String[] args) {
 3.     long i = 0;
 4.     try {
 5.       i = Integer.parseInt(args[0]);
 6.     }
 7.     catch (Exception e) { }
 8.
 9.     switch (i) {
10.       case 0:
11.         System.out.println("zero");
12.       case 1:
13.         System.out.println("one");
14.       default:
15.         System.out.println("default");
16.     }
17.   }
18. }

Only One: 
1) Compiler error.
2) The program prints "zero".
3) The program prints "one".
4) he program prints "default"


Question 31
===========================================================
Which of the following statements are true?

Mutiple: 
1) You can directly read text from a FileReader.
2) You can directly write text to a FileWriter.
3) You can directly read ints and floats from a FileReader.
4) You can directly write longs and shorts to a FileWriter.
5) You can directly read text from a RandomAccessFileReader.


Question 32
===========================================================
In the code listed below, how many key-value pairs are contained in the map after line 6 executes? 
1. Map map = new HashMap();
2. map.put("1", "1");
3. map.put("2", "2");
4. map.put("3", "3");
5. map.put("1", "3");
6. map.put("4", "1");

Only One: 
1) 1
2) 2
3) 3
4) 4
5) 5


Question 33
===========================================================
If a superclass and a subclass are in two different packages, can the subclass override a protected method of the superclass?

Only One: 
1) Yes
2) No


Question 34
===========================================================
Which of the following code fragments throw ArithmeticException?

Mutiple: 
1) int i = 1; i = i << 32;
2) int i = 1; i = i >> 1;
3) int i = 1; i = i >>> 1;
4) int i = 1; int j = i >>> 1; int k = i / j;
5) int i = 0x7FFF; i *= 5;


Question 35
===========================================================
Does the code below compile? 
 1.  class SubEx extends Exception { }
 2.
 3.  class Parent {
 4.    void foo(int i) throws Exception {
 5.      if (i > 20)
 6.        throw new Exception();
 7.    }
 8.  }
 9.
10.  class Kid extends Parent {
11.    void foo(int i) throws SubEx {
12.      if (i < 20)
13.        throw new SubEx();
14.    }
15.  }

Only One: 
1) Yes
2) No


Question 36
===========================================================
Consider the following code: 
 1. interface Inter { }
 2. class A { }
 3. class B extends A implements Inter { }
 4. class C extends B {
 5.   public static void main(String[] args) {
 6.     A a = new A();
 7.     B b = new B();
 8.     C c = new C();
 9.     if (a instanceof B)
10.       System.out.println("Hello");
11.     if (b instanceof A)
12.       System.out.println("Hello");
13.     if (c instanceof C)
14.       System.out.println("Hello");
15.     if (c instanceof Inter)
16.       System.out.println("Hello");
17.   }
18. }
When you run class C as an application, which of the following lines execute?

Mutiple: 
1) Line 10
2) Line 12
3) Line 14
4) Line 16


Question 37
===========================================================
True or false: It is legal to instantiate a class that contains abstract methods, provided you do not call any of those abstract methods.

Only One: 
1) True
2) False


Question 38
===========================================================
What happens when you try to compile the following code and execute the Dolphin application? 
 1. class Animal { }
 2. class Mammal extends Animal { }
 3. class Cat extends Mammal { }
 4. class Dolphin extends Mammal {
 5.   public static void main(String[] args) {
 6.     Mammal m = new Cat();
 7.     Animal a = m;
 8.     Dolphin d = (Dolphin)a;
 9.   }
10. }

Mutiple: 
1) The code compiles without error but throws an exception at line 8.
2) The code compiles without error but throws an exception at line 7.
3) The code compiles without error but throws an exception at line 6.
4) The code compiles with no errors and runs without throwing any exceptions.


Question 39
===========================================================
How many String objects exist as a result of running the code listed below? 
1. String s1 = "abc";
2. String s2 = s1;
3. String s3 = "abc";

Only One: 
1) None
2) 1
3) 2
4) 3


Question 40
===========================================================

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色手机在线观看| 日韩影院精彩在线| 成av人片一区二区| 欧美激情一区在线| 成人18视频日本| 亚洲美腿欧美偷拍| 欧美视频精品在线观看| 婷婷综合久久一区二区三区| 3d成人h动漫网站入口| 日韩不卡一区二区| 欧美不卡激情三级在线观看| 免费成人美女在线观看.| 日韩欧美一区二区免费| 国产在线看一区| 国产精品久久久久久久久免费丝袜 | 欧美人牲a欧美精品| 天堂一区二区在线| 欧美大度的电影原声| 国产乱码一区二区三区| 亚洲欧洲av在线| 精品视频免费在线| 九九在线精品视频| 亚洲素人一区二区| 欧美精品乱码久久久久久按摩| 久久成人免费电影| 国产女主播在线一区二区| 色综合久久88色综合天天6| 亚洲aaa精品| 久久噜噜亚洲综合| 色婷婷久久99综合精品jk白丝| 午夜精品一区二区三区三上悠亚| 日韩一区二区三区视频在线| 国产成a人亚洲| 亚洲成av人在线观看| 久久午夜电影网| 在线一区二区视频| 国产一区二区三区电影在线观看| 国产精品国产三级国产aⅴ中文| 欧美午夜一区二区| 国产精品一品二品| 亚洲成人动漫在线观看| 国产日韩亚洲欧美综合| 欧美日韩精品是欧美日韩精品| 韩国精品免费视频| 亚洲一区二区精品视频| 中文字幕乱码久久午夜不卡| 欧美日韩亚洲国产综合| 国产精品亚洲а∨天堂免在线| 亚洲午夜久久久久久久久电影网 | 久久精品国产久精国产| 亚洲日本欧美天堂| 精品国内片67194| 色8久久精品久久久久久蜜| 国产一区二区精品在线观看| 亚洲一区二区三区国产| 综合欧美一区二区三区| 久久综合久久鬼色中文字| 欧美日韩中文另类| 不卡的av中国片| 国产一区二区精品久久91| 亚洲va天堂va国产va久| 亚洲视频一二区| 久久久久久黄色| 日韩欧美国产午夜精品| 欧美日韩一卡二卡| 一本色道a无线码一区v| 成人精品国产免费网站| 激情久久久久久久久久久久久久久久| 亚洲国产欧美另类丝袜| 亚洲欧美另类小说视频| 欧美国产一区二区| 欧美激情综合网| 国产欧美一区二区精品忘忧草| 欧美大片日本大片免费观看| 欧美福利电影网| 欧美人与禽zozo性伦| 欧美熟乱第一页| 在线观看网站黄不卡| 日本电影亚洲天堂一区| 色中色一区二区| 99精品热视频| 91影视在线播放| 色综合一个色综合| 91蜜桃婷婷狠狠久久综合9色| av一本久道久久综合久久鬼色| 国产乱子伦视频一区二区三区| 极品少妇xxxx精品少妇| 国产美女视频一区| 岛国精品在线播放| 播五月开心婷婷综合| 色综合夜色一区| 欧美影院一区二区| 欧美男人的天堂一二区| 日韩视频中午一区| 久久久青草青青国产亚洲免观| 久久久五月婷婷| 国产精品高潮久久久久无| 亚洲女人的天堂| 亚洲图片有声小说| 日本欧美肥老太交大片| 国产一区二区三区蝌蚪| 成人动漫一区二区| 91久久国产综合久久| 欧美精品v国产精品v日韩精品| 日韩亚洲欧美高清| 国产欧美日韩三区| ㊣最新国产の精品bt伙计久久| 亚洲男同1069视频| 日韩在线a电影| 国产精品自拍三区| 一本到高清视频免费精品| 欧美日韩黄色一区二区| 精品粉嫩超白一线天av| 国产精品久久久久久久久免费丝袜| 亚洲素人一区二区| 日韩成人一级片| 国产一区二区不卡在线 | 国产麻豆精品一区二区| 成人精品一区二区三区四区| 欧美午夜在线一二页| 久久精品人人做人人爽人人| 亚洲资源中文字幕| 成人午夜av影视| 制服.丝袜.亚洲.中文.综合| 欧美激情一二三区| 日韩av不卡在线观看| 大桥未久av一区二区三区中文| 精品视频在线免费| 国产蜜臀97一区二区三区| 午夜精品福利一区二区三区蜜桃| 国产精品一区二区三区网站| 欧美中文字幕久久| 亚洲国产高清不卡| 欧美a一区二区| 日本韩国精品一区二区在线观看| 精品国产91乱码一区二区三区| 亚洲精品成a人| 国产专区欧美精品| 欧美精品粉嫩高潮一区二区| 国产精品久久久久一区| 久久精品国产**网站演员| 91在线播放网址| 日韩亚洲欧美在线| 亚洲成人你懂的| 国产精品亚洲午夜一区二区三区| 激情深爱一区二区| 在线播放日韩导航| 国产欧美日韩麻豆91| 肉丝袜脚交视频一区二区| 色婷婷综合久久久久中文| 日韩久久免费av| 亚洲伊人伊色伊影伊综合网| k8久久久一区二区三区| 欧美精品日韩一本| 日韩美女啊v在线免费观看| 国内不卡的二区三区中文字幕| 色婷婷综合久久久中文一区二区| 久久午夜老司机| 五月天网站亚洲| 欧美性xxxxxxxx| 中文字幕一区三区| 国产麻豆精品theporn| 精品久久久久久亚洲综合网| 一区二区三区在线观看网站| 高清日韩电视剧大全免费| 亚洲精品一区二区三区在线观看 | 五月综合激情网| 欧美亚洲图片小说| 综合分类小说区另类春色亚洲小说欧美| 蜜桃视频在线一区| 91麻豆免费看| 久久精品视频在线免费观看| 秋霞电影网一区二区| 99久久久精品| 国产精品理伦片| 国产成人av电影在线| 日韩欧美一区二区久久婷婷| 精品在线播放午夜| 7777精品伊人久久久大香线蕉超级流畅 | 亚洲成av人综合在线观看| 972aa.com艺术欧美| 亚洲精品中文在线观看| 成人黄色电影在线| 国产日韩成人精品| 国产精品99久久久久| 91精品国产91久久久久久最新毛片 | 高清成人免费视频| 国产精品三级电影| 成人av网址在线| 国产嫩草影院久久久久| 色婷婷综合五月| 亚洲精品免费在线播放| 一本色道久久综合亚洲精品按摩| 亚洲主播在线播放| 欧美二区乱c少妇| 香蕉乱码成人久久天堂爱免费| 制服丝袜一区二区三区| 久久不见久久见中文字幕免费| 欧美成人video| 成人黄色av电影|