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

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

?? mockcert07.txt

?? 一道JAVA方面的試題 很不錯(cuò)的 我很喜歡
?? TXT
?? 第 1 頁 / 共 5 頁
字號(hào):
Question 1
===========================================================
In the code fragment below, what are the legal data types for the variable "answer"? 
byte  b = 1;
char  c = 2;
short s = 3;
int   i = 4;
float f = 5f;
answer = b * c * s * i * f;

Mutiple: 
1) char
2) short
3) int
4) float
5) double


Question 2
===========================================================
What does the following code print out? 
1. try {
2.   int i = -5 % -3;
3.   System.out.println("i = " + i);
4. }
5. catch (Exception e) {
6.   System.out.println("TROUBLE");
7. }

Only One: 
1) i = 2
2) i = 3
3) i = -2
4) i = -3
5) TROUBLE


Question 3
===========================================================
When you run the following application, which component is responsible for painting the pixel at the extreme bottom-right of the interior of the frame? 
import java.awt.*;
class A {
  private final static String[] regions = {
    BorderLayout.NORTH, BorderLayout.WEST,
    BorderLayout.SOUTH, BorderLayout.EAST,
    BorderLayout.CENTER
  };

  public static void main(String[] args) {
    Frame f = new Frame();
    f.setSize(800, 800);
    for (int i=0; i < regions.length; i++) {
      Scrollbar s =
        new Scrollbar(Scrollbar.HORIZONTAL);
      f.add(s, regions[i]);
    }
    f.setVisible(true);
  }
}

Only One: 
1) The scrollbar at North
2) The scrollbar at South
3) The scrollbar at East
4) The scrollbar at West
5) he scrollbar at Center


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

Mutiple: 
1) The RandomAccessFile class does not provide a method that positions the file's file pointer.
2) The RandomAccessFile class provides a method that positions the file's file pointer relative to the beginning of the file.
3) The RandomAccessFile class provides a method that positions the file's file pointer relative to the current file pointer position.
4) The RandomAccessFile class provides a method that positions the file's file pointer relative to the end of the file.


Question 5
===========================================================
Pick all the true statements below.

Mutiple: 
1) If a thread wants to call wait() on an object, the thread must own that object's lock.
2) There is a method that you can call on an instance of the Thread class that puts the instance to sleep for a specified number of milliseconds.
3) At the moment when a thread is notified, it automatically gets the lock of the object for which it was waiting.


Question 6
===========================================================
In the code fragment below, what is the value of k after line 3 executes? 
1. int i = -1;
2. int j = i >> 3;
3. int k = j & 129;

Only One: 
1) -1
2) 0
3) 129
4) A very large negative number
5) A very large positive number


Question 7
===========================================================
What happens when you attempt to compile and execute the following application? 
 1. class XXX {
 2.   public static void main(String[] args) {
 3.     String s1 = "abcde";
 4.     String s2 = "abcde";
 5.     s1.toUpperCase();
 6.     if (s1 == s2)
 7.       System.out.println("YES");
 8.     else
 9.       System.out.println("NO");
10.   }
11. }

Only One: 
1) Compiler error.
2) The program prints out "YES".
3) The program prints out "NO".


Question 8
===========================================================
In the code below, does line 7 compile? 
 1.  class Outside {
 2.    private final float i = 1.23f;
 3.
 4.    void amethod(float j) {
 5.      class Inside {
 6.        void innerFoo() {
 7.          float k = i + j;
 8.          System.out.println("k = " + k);
 9.        }
10.     }
11.   }
12. }

Only One: 
1) Yes
2) No


Question 9
===========================================================
What statement or statements below are true concerning the following code? 
 1. class X {
 2.   public static void main(String[] a) {
 3.     try {
 4.       short s = 0x00FD;
 5.       byte b = (byte)s;
 6.       System.out.println("b = " + b);
 7.     }
 8.     catch (Exception e) {
 9.       System.out.println("TROUBLE!");
10.     }
11.   }
12. }

Mutiple: 
1) It generates a compiler error at line 5.
2) If the cast on line 5 were omitted, then line 5 would not compile.
3) The code compiles and prints "b = 0".
4) The code compiles and prints "b = -2".
5) The code compiles and prints "b = -3".


Question 10
===========================================================
What happens when you run the following application? 
 1. class Q extends Thread {
 2.   public void run() {
 3.     for (int i = 0; i < 1000; i++)
 4.       System.out.println(i);
 5.   }
 6.
 7.   public static void main(String[] args) {
 8.     Q that = new Q();
 9.     that.run();
10.     for (int j = 999; j >= 0; j--)
11.       System.out.println(j);
12.   }
13. }

Only One: 
1) The code concurrently counts up to 999 and down from 999.
2) The code first counts up to 999, and then counts down from 999.
3) The code first counts down from 999, and then counts up to 999.


Question 11
===========================================================
When you run the following application, which component is responsible for painting the pixel at the center of the interior of the frame? 
import java.awt.*;
class A {
  public static void main(String[] args) {
    Frame f = new Frame();
    f.setSize(801, 801);
    Scrollbar sbar1 =
      new Scrollbar(Scrollbar.VERTICAL);
    f.add(sbar1, BorderLayout.WEST);
    Scrollbar sbar2 =
      new Scrollbar(Scrollbar.HORIZONTAL);
    f.add(sbar2, BorderLayout.NORTH);
    Button btn = new Button("PushMe");
    f.add(btn, BorderLayout.CENTER);
    f.setVisible(true);
  }
}

Only One: 
1) The horizontal scrollbar
2) The vertical scrollbar
3) The button


Question 12
===========================================================
What happens when you attempt to compile the following code? 
1. class Xyz {
2.   protected String toString() {
3.     return super.toString();
4.   }
5. }

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


Question 13
===========================================================
What is the effect of attempting to compile the following code and then execute the Child application? 
 1. public class Papa {
 2.   int i;
 3.   Papa(int j) { i = j; }
 4. }
 5.
 6. class Child extends Papa {
 7.   Child() { i = 5; }
 8.   public static void main(String[] args) {
 9.     new Child();
10.   }
11. }

Only One: 
1) Compiler error at line 6.
2) Compiler error at line 7.
3) Compiler error at line 9.
4) The code compiles but throws an exception when the application is executed.
5) The code compiles and executes with no problems.


Question 14
===========================================================
What is the result of attempting to compile and execute the following application? 
1. public class X {
2.   public static void main(String[] args) {
3.     int i = Math.ceil(-Math.PI);
4.     System.out.println("i = " + i);
5.   }
6. }

Mutiple: 
1) Compiler error at line 3.
2) The code compiles, and prints out a value of 3.
3) The code compiles, and prints out a value of 4.
4) The code compiles, and prints out a value of -3.
5) The code compiles, and prints out a value of -4.


Question 15
===========================================================
Which statement or statements below is/are true about the following code, when run as an application? 
 1. class X {
 2.   public static void main(String[] args) {
 3.     try {
 4.       int i = (-1 >> 65535) + 1;
 5.       int j = 5 / i;
 6.       System.out.println("End of try block");
 7.     }
 8.   catch (Exception e) { System.exit(0); }
 9.   finally { System.out.println("FINALLY!"); }
10.   }
11. }

Mutiple: 
1) The program doesn't print anything.
2) The program prints "End of try block".
3) The program prints "FINALLY".


Question 16
===========================================================
Does the following code compile? If not, where is the first compiler error? 
1. interface Inter { }
2.
3. class A implements Inter { }
4.
5. class B extends A {
6.   A a = new B();
7.   Inter i = a;
8. }

Only One: 
1) The code compiles without error.
2) Compiler error at line 6.
3) Compiler error at line 7.


Question 17
===========================================================
Which of the following code fragments generate compiler errors?

Mutiple: 
1) boolean boo = true; int i = boo;
2) byte b = 5; char c = b;
3) char c1 = 'a'; short s = c1;
4) long lon = 1L; float f = lon;
5) float f1 = 2L; long lon1 = f1;


Question 18
===========================================================
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 (IOException x) {
10.       System.out.println(
11.         "main() caught IOException");
12.     }
13.     catch (Exception x) {
14.       System.out.println(
15.         "main() caught Exception");
16.     }
17.   }
18.
19.   static void thud() throws IOException {
20.     try {
21.       throw new SubEx();
22.     }
23.     catch (IOException x) {
24.       System.out.println(
25.         "thud() caught IOException");
26.       throw new SubEx();
27.     }
28.     catch (Exception x){
29.       System.out.println(
30.         "thud() caught Exception");
31.     }
32.   }
33. }

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


Question 19
===========================================================
True or false: All methods in all event listener interfaces in the java.awt.event package have the same return type.

Only One: 
1) True
2) False


Question 20
===========================================================
The following application displays a frame that contains several components. Which component is responsible for painting the top-left pixel of the frame's interior? 
import java.awt.*;
class A {
  public static void main(String[] args) {
    Frame f = new Frame();
    f.setSize(600, 300);
    Panel top = new Panel();
    top.setLayout(new FlowLayout(FlowLayout.RIGHT));

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人亚洲一区二区一| 99久久99精品久久久久久| 国产精品成人一区二区三区夜夜夜 | 国产不卡视频一区二区三区| 亚洲福利视频一区| 中文字幕av免费专区久久| 日韩午夜激情电影| 91国产免费看| av亚洲精华国产精华精| 狠狠色综合色综合网络| 亚洲国产aⅴ成人精品无吗| 中文字幕不卡在线观看| 精品国产91亚洲一区二区三区婷婷| 在线观看精品一区| 高清在线成人网| 久久99精品国产| 人人精品人人爱| 亚洲国产视频一区| 亚洲欧美日韩电影| 亚洲国产精品精华液2区45| 欧美一级黄色录像| 欧美日韩精品福利| 欧美色涩在线第一页| 色呦呦网站一区| 99热99精品| 99久久综合99久久综合网站| 国产美女精品人人做人人爽| 日本vs亚洲vs韩国一区三区二区| 亚洲一区二区三区影院| 夜夜嗨av一区二区三区四季av| 国产欧美日韩另类一区| 久久免费美女视频| 国产午夜精品美女毛片视频| 久久婷婷综合激情| 久久精品一区二区三区四区| 日韩精品一区二区三区四区视频| 日韩一级二级三级| 欧美一区二区视频免费观看| 欧美美女一区二区在线观看| 欧美视频一区二区三区四区| 91久久免费观看| 中文字幕亚洲区| 欧美成人艳星乳罩| 精品久久五月天| 国产无人区一区二区三区| 久久综合999| 国产精品网站在线观看| 中文字幕一区二区三区视频| 日韩一区中文字幕| 亚洲综合区在线| 日韩成人一区二区三区在线观看| 蜜臀av一区二区在线免费观看 | 久久久久99精品国产片| 国产网站一区二区| 中文字幕一区三区| 一区二区三区欧美视频| 亚洲综合清纯丝袜自拍| 日韩成人一级片| 国产美女一区二区| 99在线视频精品| 欧美日韩一区视频| 91精品国产一区二区三区香蕉| 欧美一区二区三区四区在线观看| 精品99一区二区| 亚洲国产精品99久久久久久久久| 亚洲青青青在线视频| 亚洲成人资源网| 国产在线精品一区二区| 99久久精品费精品国产一区二区| 欧美三级欧美一级| 精品国产91久久久久久久妲己| 国产精品午夜春色av| 精品午夜一区二区三区在线观看| 国产成人8x视频一区二区| 在线一区二区三区四区五区| 日韩一区二区免费在线电影 | 精品国免费一区二区三区| 日本一区二区三区电影| 亚洲国产一区在线观看| 国产自产视频一区二区三区| 91美女片黄在线| 精品国产乱码久久久久久浪潮| 亚洲欧洲日韩女同| 蜜桃视频一区二区| 91免费小视频| 精品日产卡一卡二卡麻豆| 日韩伦理av电影| 精品一区二区三区免费播放 | 欧美午夜精品久久久| 精品国偷自产国产一区| 亚洲久本草在线中文字幕| 蜜桃精品视频在线观看| 91视频免费观看| 久久夜色精品一区| 亚洲午夜影视影院在线观看| 国产精品性做久久久久久| 欧美日韩在线三级| 中文字幕的久久| 激情深爱一区二区| 欧美日韩高清影院| 亚洲欧洲av在线| 国产精品亚洲综合一区在线观看| 精品视频一区二区不卡| 国产精品美女久久久久aⅴ| 久久成人免费网| 欧美日韩精品是欧美日韩精品| 国产精品家庭影院| 国产一区在线看| 欧美精品aⅴ在线视频| 亚洲精品老司机| 国产91精品久久久久久久网曝门| 日韩欧美自拍偷拍| 亚洲成人1区2区| 色天天综合色天天久久| 中文字幕视频一区| 国产成人精品免费看| 久久综合九色综合97婷婷| 视频一区二区中文字幕| 在线观看欧美黄色| 亚洲人成7777| www..com久久爱| 日本一二三四高清不卡| 国产高清久久久| 亚洲精品一区二区三区香蕉| 日韩影视精彩在线| 欧美精品1区2区3区| 亚洲成人动漫av| 欧美日韩黄色一区二区| 亚洲国产色一区| 欧美日韩国产一级片| 亚洲成av人在线观看| 欧美日韩国产乱码电影| 亚洲午夜激情网页| 欧美日韩一区精品| 日韩成人午夜电影| 欧美一区二区三区四区高清| 三级影片在线观看欧美日韩一区二区| 欧美日韩精品一区二区天天拍小说| 亚洲一区二区免费视频| 欧美片在线播放| 午夜电影网一区| 日韩三级在线免费观看| 日本在线不卡视频一二三区| 日韩精品专区在线| 国产一区二区在线观看视频| 久久色视频免费观看| 国产一区二区精品久久91| 国产区在线观看成人精品| 国产成人午夜视频| 日韩一区日韩二区| 欧美在线短视频| 美女视频黄免费的久久 | 色八戒一区二区三区| 亚洲综合在线观看视频| 欧美日韩视频在线第一区 | 国产精品久久久久一区二区三区| 成人精品免费看| 亚洲一区二区三区激情| 91精品国产美女浴室洗澡无遮挡| 奇米777欧美一区二区| 国产拍欧美日韩视频二区| 91丨porny丨蝌蚪视频| 婷婷成人激情在线网| www亚洲一区| 色婷婷av一区二区三区软件| 午夜成人免费电影| 日韩精品中文字幕一区| 成人av网站在线观看| 亚洲一区视频在线| 精品国产91久久久久久久妲己| 成人一区在线观看| 亚洲亚洲人成综合网络| 欧美成人猛片aaaaaaa| 91视视频在线观看入口直接观看www | 欧美白人最猛性xxxxx69交| 国产精品一二二区| 亚洲一本大道在线| 久久久久青草大香线综合精品| 92精品国产成人观看免费| 日韩成人一区二区三区在线观看| 国产亚洲一区二区三区| 91久久精品国产91性色tv| 久久成人免费日本黄色| 亚洲精品久久久蜜桃| 精品福利一区二区三区免费视频| a在线播放不卡| 六月婷婷色综合| 亚洲最色的网站| 欧美国产精品久久| 4438成人网| 色拍拍在线精品视频8848| 精品一区二区在线看| 一区二区激情视频| 久久精品亚洲国产奇米99| 在线成人小视频| jlzzjlzz欧美大全| 国产一区三区三区| 日精品一区二区三区| 亚洲欧美乱综合| 国产女主播一区|