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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mockcert05.txt

?? 一道JAVA方面的試題 很不錯的 我很喜歡
?? TXT
?? 第 1 頁 / 共 5 頁
字號:

Mutiple: ________________
1) 1
2) 2
3) 3
4) 4
5) none


Question 58
===========================================================
What is the result of the following code :


     public class SuperEx {

          String r;

          String s;


          public SuperEx(String a,String b) {

               r = a;

               s = b;

          }


          public void aMethod() {

               System.out.println("r :" + r);

          }

     }



     public class NewSuper extends SuperEx {


          public NewSuper(String a,String b) {

               super(a,b);

          }


          public static void main(String args []) {

               SuperEx a = new SuperEx("Hi","Tom");

               SuperEx b = new NewSuper("Hi","Bart");


               a.aMethod();

               b.aMethod();

          }


          public void aMethod() {

               System.out.println("r :" + r + "  s:" + s);

          }

     }

Mutiple: ________________
1) The following is displayed:

r:Hi

s:Hi
2) Compiler error at the line "SuperEx b = new NewSuper("Hi","Bart");"
3) The following is displayed:

r:Hi

r:Hi s:Bart
4) The following is displayed

r:Hi s:Tom

r:Hi s:Bar


Question 59
===========================================================
You have a class with a certain variable and you don't want that variable to be accessible to ANY other class but your own. Your class must be sub-classable.


Which keyword do you add to the variable.

Mutiple: ________________
1) private
2) public
3) transient
4) final
5) abstract


Question 60
===========================================================
You get this description of a class :


Employee is a person. For every employee, we keep a vector with the working hours, an integer for the salary and a variable that can be true or false whether or not the employee has a company car.


Indicate which of the following would be used to define the class members.

Mutiple: ________________
1) Vector
2) Employee
3) Object
4) boolean
5) int


Question 61
===========================================================
Which line of code can be inserted in place of the comments, to perform the initialisation described by the comments:


     public class T {

          int r;

          int s;


          T(int x, int y) {

               r = x;

               s = y;

          }

     }


     class S extends T {

          int t;


          public S(int x, int y, int z){

               // insert here the code

               // that would do the correct initialisation

               // r= x  and s= y

               t=z;

          }

     }

Mutiple: ________________
1) T(x, y);
2) this(x, y);
3) super(x, y);
4) super(x, y, z);
5) None


Question 62
===========================================================
Suppose a MyException should be thrown if Condition() is true, which statements do you have to insert ?


1: public aMethod {

2:

3:      if (Condition) {

4:

5:      }

6:

7: }

Mutiple: ________________
1) throw new Exception() at line 4
2) throws new MyException() at line 4
3) throw new MyException() at line 6
4) throws new Exception() at line 2
5) throws MyException at line 1


Question 63
===========================================================
Given the following class definition:

class A {
  protected int i;
  A(int i) {
     this.i = i;
  }
}

Which of the following would be a valid inner class for this class?

Select all valid answers.

Mutiple: ________________
1) class B {}
2) class B extends A {}
3) class B {
  B() { 
     System.out.println("i = " + i);
  }
}
4) class B {
  class A {}
}
5) class A {}


Question 64
===========================================================
What statements are true concerning the method notify() that is used in conjunction with wait()?

Select all valid answers.

Mutiple: ________________
1) if there is more than one thread waiting on a condition, only the thread that has been waiting the longest is notified
2) if there is more than one thread waiting on a condition,there is no way to predict which thread will be notifed
3) notify() is defined in the Thread class
4) it is not strictly necessary to own the lock for the object you invoke notify() for
5) notify() should only be invoked from within a while loop


Question 65
===========================================================
Given the following class:

class Counter {
  public int startHere = 1;
  public int endHere = 100;

  public static void main(String[] args) {
    new Counter().go();
  }

  void go() {
    // A
    Thread t = new Thread(a);
    t.start();
  }
}

What block of code can you replace at line A above so that this program will count from startHere to endHere?

Select all valid answers.

Mutiple: ________________
1) Runnable a = new Runnable() {
  public void run() {
    for (int i = startHere; i <= endHere; i++) {
       System.out.println(i);
    }
  }
};
2) a implements Runnable {
  public void run() {
     for (int i = startHere; i <= endHere; i++) {
         System.out.println(i);
      }
  }
};
3) Thread a = new Thread() {
  public void run() {
    for (int i = startHere; i <= endHere; i++) {
        System.out.println(i);
    }
  }
};


Question 66
===========================================================
What is written to the standard output given the following statement:

    System.out.println(4 | 7);

Select the one right answer.

Mutiple: ________________
1) 4
2) 5
3) 6
4) 7
5) 0


Question 67
===========================================================
Given the following class:

class Counter {
  public static void main(String[] args) {
     Thread t = new Thread(new CounterBehavior());
     t.start();
  }
}

Which of the following is a valid definition of CounterBehavior that would make Counter抯 main() method count from 1 to 100, counting once per second?

Select the one right answer.

Mutiple: ________________
1) This class is an inner class to Counter:
class CounterBehavior {
  for (int i = 1; i <= 100; i++);
  try {
      System.out.println(i);
      Thread.sleep(1000);
   } catch (InterruptedException x) {}
 }
}
2) This class is an inner class to Counter:
class CounterBehavior implements Runnable {
  public void run() {
    for (int i = 1; i <= 100; i++);
    try {
        System.out.println(i);
        Thread.sleep(1000);
     } catch (InterruptedException x) {}
   }
 }
}
3) This class is a top-level class:
static class CounterBehavior implements Runnable {
  public void run() {
    try {
        for (int i = 1; i <= 100; i++) {
            System.out.println(i);
            Thread.sleep(1000);
         }
    } catch (InterruptedException x) {}
  }
}


Question 68
===========================================================
Given the following class definition:

class A {
  public int x;
  private int y;
  class B {
     protected void method1() {}

     class C {
        private void method2() {}
     }
   }
}

class D extends A {
  public float z;
}

What can method2() access directly, without a reference to another instance?

Select all valid answers.

Mutiple: ________________
1) the variable x defined in A
2) the variable y defined in A
3) method1 defined in B
4) the variable z defined in D


Question 69
===========================================================
You have an 8-bit file using the character set defined by ISO 8859-8. You are writing an application to display this file in a TextArea. The local encoding is already set to 8859-8. How can you write a chunk of code to read the first line from this file?

You have three variables accessible to you:

myfile is the name of the file you want to read 

stream is an InputStream object associated with this file 

s is a String object 

Select all valid answers.

Mutiple: ________________
1) InputStreamReader reader = new InputStreamReader(stream, "8859-8");

BufferedReader buffer = new BufferedReader(reader);

s = buffer.readLine();
2) InputStreamReader reader = new InputStreamReader(stream);

BufferedReader buffer = new BufferedReader(reader);

s = buffer.readLine();
3) InputStreamReader reader = new InputStreamReader(myfile, "8859-8");

BufferedReader buffer = new BufferedReader(reader);

s = buffer.readLine();
4) InputStreamReader reader = new InputStreamReader(myfile);

BufferedReader buffer = new BufferedReader(reader);

s = buffer.readLine();
5) FileReader reader = new FileReader(myfile);

BufferedReader buffer = new BufferedReader(reader);

s = buffer.readLine();


Question 70
===========================================================
How can you write a line of code for an applet抯 init() method that determines how wide the applet is?

Select all valid answers.

Mutiple: ________________
1) int width = this.getY();
2) int width = this.getSize().w;
3) int width = getSize();
4) int width = getSize().w;
5) int width = getWidth();


Question 71
===========================================================
For a variable width font, how "wide" is a TextField created using the expression:

new TextField(20)

Select the one right answer.

Mutiple: ________________
1) 20 times the average of all the characters in the font used for this TextField object
2) 20 times the width of the letter M
3) 20 times the width of the letter a
4) 20 inches
5) 20 picas


Question 72
===========================================================
Given this interface definition:

interface A {
  int method1(int i);
  int method2(int j);
}

which of the following classes implement this interface and is not abstract?

Select all valid answers.

Mutiple: ________________
1) class B implements A {
  int method1() { }
  int method2() { }
}
2) class B {
  int method1(int i) { }
  int method2(int j) { }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲中国最大av网站| 欧美美女网站色| 久久久www免费人成精品| 韩国理伦片一区二区三区在线播放| 555夜色666亚洲国产免| 青青草国产成人av片免费| 日韩免费在线观看| 高清在线不卡av| 中文字幕一区二区三区四区| 一道本成人在线| 亚洲福利视频三区| 精品日韩99亚洲| 成人午夜又粗又硬又大| 亚洲自拍与偷拍| 日韩精品一区二区三区四区视频 | 韩国欧美一区二区| 国产精品女同互慰在线看| 色综合视频一区二区三区高清| 亚洲激情男女视频| 欧美一区二区精品在线| 成人午夜免费视频| 婷婷久久综合九色国产成人| 久久久综合视频| 91在线视频播放| 奇米色777欧美一区二区| 国产喂奶挤奶一区二区三区| 色综合久久久久综合99| 美国欧美日韩国产在线播放| 国产精品美女视频| 91麻豆精品国产91久久久资源速度 | 色播五月激情综合网| 蜜桃一区二区三区在线| 中文字幕一区二区三区蜜月 | 精品国产一区久久| 色噜噜夜夜夜综合网| 麻豆视频观看网址久久| 亚洲欧洲综合另类在线| 日韩欧美精品在线视频| 在线视频欧美精品| 国产大陆亚洲精品国产| 日韩va亚洲va欧美va久久| 国产精品电影一区二区三区| 欧美成人a视频| 欧美视频完全免费看| 成人性视频网站| 免费人成在线不卡| 亚洲精品成人a在线观看| 久久婷婷国产综合国色天香 | 极品美女销魂一区二区三区| 亚洲美女免费视频| 久久精品无码一区二区三区| 91精品免费在线| 91九色最新地址| 成人丝袜视频网| 国产毛片精品视频| 蜜桃av一区二区在线观看| 亚洲一区二区三区中文字幕在线| 国产网红主播福利一区二区| 欧美电视剧在线看免费| 欧美日韩日本视频| 色综合色综合色综合色综合色综合| 福利一区二区在线| 国产成人在线电影| 精品一区二区三区香蕉蜜桃 | 欧美韩日一区二区三区四区| 日韩一区二区三区在线| 91国产视频在线观看| 不卡av免费在线观看| 粉嫩蜜臀av国产精品网站| 激情欧美一区二区三区在线观看| 日韩高清中文字幕一区| 日日夜夜免费精品| 午夜视频在线观看一区| 亚洲第一激情av| 午夜精品一区二区三区免费视频 | 精品在线免费视频| 久久99国产乱子伦精品免费| 全部av―极品视觉盛宴亚洲| 奇米在线7777在线精品| 视频精品一区二区| 琪琪一区二区三区| 国内成+人亚洲+欧美+综合在线| 日韩精品一二三区| 蜜桃视频第一区免费观看| 另类小说一区二区三区| 久久91精品国产91久久小草| 久88久久88久久久| 国产99一区视频免费| 成人av电影在线观看| 97精品久久久久中文字幕| 色婷婷综合激情| 欧美体内she精视频| 欧美高清hd18日本| 精品久久人人做人人爰| 久久久精品黄色| 亚洲视频免费在线| 亚洲国产成人91porn| 蜜桃av一区二区| 成人免费观看av| 在线观看亚洲专区| 日韩一区二区三区av| 久久精品男人的天堂| 亚洲欧美乱综合| 日日摸夜夜添夜夜添亚洲女人| 韩国欧美国产1区| 91浏览器在线视频| 在线观看91av| 国产午夜亚洲精品羞羞网站| 亚洲人xxxx| 激情综合亚洲精品| 91蝌蚪porny| 日韩欧美成人午夜| 成人欧美一区二区三区黑人麻豆| 亚洲国产精品天堂| 国产九九视频一区二区三区| 97久久精品人人爽人人爽蜜臀| 欧美日韩高清影院| 欧美激情一区在线| 日韩中文字幕不卡| 成人免费看的视频| 日韩一级完整毛片| 综合色中文字幕| 黑人巨大精品欧美一区| 91久久久免费一区二区| 日本一区二区三区dvd视频在线| 亚洲一区二区欧美激情| 国产99久久久久| 6080午夜不卡| 一个色在线综合| 成人一区二区三区中文字幕| 欧美大白屁股肥臀xxxxxx| 一区二区三区在线不卡| 国产激情91久久精品导航| 555夜色666亚洲国产免| 亚洲综合一二三区| 国产aⅴ综合色| 精品国产髙清在线看国产毛片 | 日本特黄久久久高潮| 91丨九色porny丨蝌蚪| 精品福利一二区| 日韩中文字幕一区二区三区| 色综合久久久久| 国产精品久久免费看| 国产一区二区免费在线| 欧美一区二区三区性视频| 一区二区三区四区高清精品免费观看 | 日韩电影在线免费| 色一情一伦一子一伦一区| 国产人成亚洲第一网站在线播放 | 日本一不卡视频| 在线观看av一区| 亚洲色图另类专区| 成人av在线看| 国产日韩欧美麻豆| 国产乱子伦一区二区三区国色天香| 51久久夜色精品国产麻豆| 亚洲成人午夜影院| 欧美视频一区二区三区在线观看| 亚洲精品乱码久久久久久久久 | 国产成a人亚洲精品| 精品国产一区二区三区久久影院| 日韩1区2区日韩1区2区| 制服丝袜亚洲色图| 日韩av不卡在线观看| 欧美一级免费大片| 日韩av在线发布| 欧美一卡2卡3卡4卡| 人人精品人人爱| 欧美变态tickling挠脚心| 蜜桃一区二区三区在线| 欧美不卡一区二区三区| 国产一区二区主播在线| 久久伊99综合婷婷久久伊| 国产精品1区二区.| 中文字幕不卡一区| 91视频一区二区| 亚洲一本大道在线| 91麻豆精品久久久久蜜臀| 六月丁香综合在线视频| 久久免费电影网| 成年人国产精品| 一区二区不卡在线播放 | 美日韩一区二区三区| 欧美xingq一区二区| 国产中文字幕一区| 欧美激情一区在线观看| 色狠狠桃花综合| 亚洲成av人片在线观看无码| 日韩欧美一区二区三区在线| 激情综合色播五月| 国产精品盗摄一区二区三区| 在线观看日韩电影| 免费三级欧美电影| 国产精品美女一区二区| 欧美日韩亚洲综合一区二区三区| 日日夜夜精品免费视频| 国产亚洲一区二区三区四区| 一本大道久久a久久综合婷婷 | 亚洲乱码国产乱码精品精的特点| 欧美午夜在线一二页|