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

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

?? mockcert02.txt

?? JAVA方面的一道練習(xí)試題 很好的 很不錯的
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
Question 1
===========================================================
Given the following code:

public class Test {

?
}


Which of the following can be used to define a constructor for this class:

Mutiple: 
1) public void Test() {厎
2) public Test() {厎
3) public static Test() {厎
4) public static void Test() {厎


Question 2
===========================================================
Which of the following are acceptable to the Java compiler:

Mutiple: 
1) if (2 == 3) System.out.println("Hi");
2) if (2 = 3) System.out.println("Hi");
3) if (true) System.out.println("Hi");
4) if (2 != 3) System.out.println("Hi");
5) if (aString.equals("hello")) System.out.println("Hi");


Question 3
===========================================================
Assuming a method contains code which may raise an Exception (but not a RuntimeException), what is the correct way for a method to indicate that it expects the caller to handle that exception:

Mutiple: 
1) throw Exception
2) throws Exception
3) new Exception
4) Don't need to specify anything


Question 4
===========================================================
What is the result of executing the following code, using the parameters 4 and 0:

public void divide(int a, int b) {
  try {
      int c = a / b;
  }catch (Exception e) {
      System.out.print("Exception ");
  }finally {
      System.out.println("Finally");
  }
}

Mutiple: 
1) Prints out: Exception Finally
2) Prints out: Finally
3) Prints out: Exception
4) No output


Question 5
===========================================================
Which of the following is a legal return type of a method overloading the following method:

public void add(int a) {厎

Mutiple: 
1) void
2) int
3) Can be anything


Question 6
===========================================================
Which of the following statements is correct for a method which is overriding the following method:


public void add(int a) {厎

Mutiple: 
1) the overriding method must return void
2) the overriding method must return int
3) the overriding method can return whatever it likes


Question 7
===========================================================
Given the following classes defined in separate files:

class Vehicle {
  public void drive() {
    System.out.println("Vehicle: drive");
  }
}

class Car extends Vehicle {
  public void drive() {
    System.out.println("Car: drive");
  }
}

public class Test {
  public static void main (String args []) {
    Vehicle v;
    Car c;

    v = new Vehicle();
    c = new Car();
    v.drive();
    c.drive();
    v = c;
    v.drive();
  }
}

What will be the effect of compiling and running this class Test?

Only One: 
1) Generates a Compiler error on the statement v= c;
2) Generates runtime error on the statement v= c;
3) Vehicle: drive
Car: drive
Car: drive
4) Vehicle: drive
Car: drive
Vehicle: drive


Question 8
===========================================================
Where in a constructor, can you place a call to a constructor defined in the super class?

Mutiple: 
1) Anywhere
2) The first statement in the constructor
3) The last statement in the constructor
4) You can't call super in a constructor


Question 9
===========================================================
Which variables can an inner class access from the class which encapsulates it?

Mutiple: 
1) All static variables
2) All final variables
3) All instance variables
4) Only final instance variables
5) Only final static variables


Question 10
===========================================================
What class must an inner class extend:

Mutiple: 
1) The top level class
2) The Object class
3) Any class or interface
4) It must extend an interface


Question 11
===========================================================
In the following code, which is the earliest statement, where the object originally held in e, may be garbage collected:

  1.public class Test { 
  2.  public static void main (String args []) { 
  3.    Employee e = new Employee("Bob", 48); 
  4.    e.calculatePay(); 
  5.    System.out.println(e.printDetails()); 
  6.    e = null; 
  7.    e = new Employee("Denise", 36); 
  8.    e.calculatePay(); 
  9.    System.out.println(e.printDetails()); 
 10.  } 
 11.}

Only One: 
1) Line 10
2) Line 11
3) Line 7
4) Line 8
5) Never


Question 12
===========================================================
What is the name of the interface that can be used to define a class that can execute within its own thread?

Mutiple: 
1) Runnable
2) Run
3) Threadable
4) Thread
5) Executable


Question 13
===========================================================
What is the name of the method used to schedule a thread for execution?

Mutiple: 
1) init();
2) start();
3) run();
4) resume();
5) sleep();


Question 14
===========================================================
Which methods may cause a thread to stop executing?

Mutiple: 
1) sleep()
2) stop()
3) yield()
4) wait();
5) synchronized()


Question 15
===========================================================
The following code defines a simple applet:

import java.applet.Applet;
import java.awt.*;

public class Sample extends Applet {
  private String text = "Hello World";
  public void init() {
    add(new Label(text));
  }

  public Sample (String string) {
    text = string;
  }
}

It is accessed form the following HTML page:
<html>
<title>Sample Applet</title>
<body>
<applet code="Sample.class" width=200 height=200></applet>
</body>
</html>

What is the result of compiling and running this applet:

Only One: 
1) Prints "Hello World".
2) Generates a runtime error.
3) Does nothing.
4) Generates a compile time error.


Question 16
===========================================================
Which of the following methods are defined on the Graphics class:

Mutiple: 
1) drawLine(int, int, int, int)
2) drawImage(Image, int, int, ImageObserver)
3) drawString(String, int, int)
4) add(Component);
5) setVisible(boolean);


Question 17
===========================================================
Which of the following layout managers honours the preferred size of a component:

Only One: 
1) CardLayout
2) FlowLayout
3) BorderLayout
4) GridLayout


Question 18
===========================================================
Given the following code what is the effect of a being 5:

public class Test {
  public void add(int a) {
    loop:
    for(int i = 1; i < 3; i++){
       for(int j = 1; j < 3; j++) {
          if(a == 5) {
            break loop;
          }
          System.out.println(i * j);
        }
    }
  }
}

Only One: 
1) Generate a runtime error
2) Throw an ArrayIndexOutOfBoundsException
3) Print the values: 1, 2, 2, 4
4) Produces no output


Question 19
===========================================================
What is the effect of issuing a wait() method on an object

Mutiple: 
1) If a notify() method has already been sent to that object then it has no effect
2) The object issuing the call to wait() will halt until another object sends a notify() or notifyAll() method
3) An exception will be raised
4) The object issuing the call to wait() will be automatically synchronized with any other objects using the receiving object.


Question 20
===========================================================
The layout of a container can be altered using which of the following methods:

Mutiple: 
1) setLayout(aLayoutManager);
2) addLayout(aLayoutManager);
3) layout(aLayoutManager);
4) setLayoutManager(aLayoutManager);


Question 21
===========================================================
Using a FlowLayout manager, which is the correct way to add elements to a container:

Mutiple: 
1) add(component);
2) add("Center", component);
3) add(x, y, component);
4) set(component);


Question 22
===========================================================
Given that a Button can generate an ActionEvent which listener would you expect to have to implement, in a class which would handle this event?

Mutiple: 
1) FocusListener
2) ComponentListener
3) WindowListener
4) ActionListener
5) ItemListener


Question 23
===========================================================
Which of the following, are valid return types, for listener methods:

Only One: 
1) boolean
2) the type of event handled
3) void
4) Component


Question 24
===========================================================
Assuming we have a class which implements the ActionListener interface, which method should be used to register this with a Button?

Only One: 
1) addListener(*);
2) addActionListener(*);
3) addButtonListener(*);
4) setListener(*);


Question 25
===========================================================
In order to cause the paint(Graphics) method to execute, which of the following is the most appropriate method to call:

Mutiple: 
1) paint()
2) repaint()
3) paint(Graphics)
4) update(Graphics)
5) None ?you should never cause paint(Graphics) to execute


Question 26
===========================================================
Which of the following illustrates the correct way to pass a parameter into an applet:

Only One: 
1) <applet code=Test.class age=33 width=100 height=100>
2) <param name=age value=33>
3) <applet code=Test.class name=age value=33 width=100 height=100>
4) <applet Test 33>


Question 27
===========================================================
Which of the following correctly illustrate how an InputStreamReader can be created:

Mutiple: 
1) new InputStreamReader(new FileInputStream("data"));
2) new InputStreamReader(new FileReader("data"));
3) new InputStreamReader(new BufferedReader("data"));
4) new InputStreamReader("data");
5) new InputStreamReader(System.in);


Question 28
===========================================================

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产cao| 亚洲欧美电影院| 亚洲bt欧美bt精品777| 一卡二卡欧美日韩| 91在线观看污| 中文字幕国产一区| 久久久一区二区| 国模套图日韩精品一区二区| 日韩欧美一区电影| 欧美激情在线看| 国产精品1区二区.| 国产欧美精品一区二区色综合 | 日韩一区欧美小说| 9i在线看片成人免费| 久久99九九99精品| 精品一区二区在线免费观看| 欧美精品久久久久久久久老牛影院| 一区二区三区欧美日韩| 欧美综合在线视频| 亚洲一区在线观看免费观看电影高清| 91福利精品第一导航| 亚洲综合视频在线| 91精品国产综合久久小美女| 免费在线观看精品| 在线观看成人免费视频| 亚洲国产视频直播| 日韩精品一区二区在线| 久久国产视频网| 日韩一区二区三区视频在线 | 国产精品亚洲一区二区三区妖精| 精品国产一区二区三区不卡| 国产在线播放一区| 中文字幕av一区二区三区| eeuss鲁片一区二区三区在线看| 亚洲色大成网站www久久九九| 日本韩国欧美在线| 久久国产婷婷国产香蕉| 欧美激情中文字幕一区二区| 日本道色综合久久| 久久成人综合网| 成人欧美一区二区三区1314| 欧美日韩另类国产亚洲欧美一级| 天天综合网天天综合色| 久久男人中文字幕资源站| 成人午夜激情片| 天天色天天操综合| 国产亚洲人成网站| 欧美日韩久久不卡| 国产成人精品三级| 久久精品亚洲一区二区三区浴池| 91视频国产观看| 亚洲在线视频一区| 久久久久一区二区三区四区| 欧美亚洲综合一区| 国产宾馆实践打屁股91| 亚洲国产毛片aaaaa无费看| 4438x成人网最大色成网站| 国产精品18久久久久久久久久久久| 久久精品一区四区| 在线观看欧美精品| 国产精品一区二区男女羞羞无遮挡 | 国产超碰在线一区| 日韩精品亚洲专区| 亚洲精品中文字幕在线观看| 日韩精品影音先锋| 欧美色倩网站大全免费| 国产精品资源网站| 美腿丝袜在线亚洲一区| 亚洲欧美日韩一区二区| 国产欧美精品一区aⅴ影院| 91麻豆精品国产自产在线观看一区| 波多野洁衣一区| 国产综合久久久久久鬼色 | 国产不卡在线视频| 久久国产精品无码网站| 亚洲va韩国va欧美va| 亚洲青青青在线视频| 欧美国产精品一区二区| 欧美sm极限捆绑bd| www.色精品| 国产福利不卡视频| 精品一区二区免费在线观看| 亚洲成av人综合在线观看| 亚洲图片你懂的| 中文欧美字幕免费| 久久久精品国产免费观看同学| 日韩一区二区三区观看| 欧美欧美午夜aⅴ在线观看| 在线观看一区二区精品视频| 91美女福利视频| 成人99免费视频| 成人动漫av在线| 成人国产在线观看| 国产激情一区二区三区桃花岛亚洲| 日本欧美在线看| 男人的j进女人的j一区| 成人av网站在线| 久久99精品久久久| 黄色小说综合网站| 懂色av一区二区三区蜜臀| www.综合网.com| 欧美三级三级三级爽爽爽| 色婷婷激情综合| 91福利社在线观看| 欧美日韩国产一级| 91精品国产综合久久精品app| 国产精品另类一区| 国产精品日日摸夜夜摸av| 国产日韩欧美在线一区| 国产人妖乱国产精品人妖| 久久久久久久av麻豆果冻| 久久久久免费观看| 国产精品久线在线观看| 亚洲三级在线播放| 亚洲电影一级片| 欧美96一区二区免费视频| 精品一区二区三区影院在线午夜| 国产专区综合网| 国内不卡的二区三区中文字幕| 国产剧情一区二区三区| 91色在线porny| 欧美美女一区二区三区| 久久综合精品国产一区二区三区 | 亚洲色图欧美偷拍| 五月婷婷综合在线| 国产精品一区二区久激情瑜伽| 成人精品视频一区二区三区 | 婷婷一区二区三区| 老司机午夜精品| 成人国产亚洲欧美成人综合网 | 一区二区三区视频在线看| 天天免费综合色| 国产一区二区电影| 国产成人精品在线看| 欧美日韩一二三| 日韩三级免费观看| 国产目拍亚洲精品99久久精品| 国产精品二三区| 日韩一区欧美二区| www.爱久久.com| 日韩视频一区在线观看| 自拍偷自拍亚洲精品播放| 日韩精品电影在线| 91色婷婷久久久久合中文| 91精品国产91久久久久久一区二区| 国产香蕉久久精品综合网| 夜夜嗨av一区二区三区网页| 狠狠色综合日日| 欧美熟乱第一页| 国产精品私房写真福利视频| 日本特黄久久久高潮| 99免费精品视频| 欧美久久久久免费| 中文字幕一区二| 激情深爱一区二区| 欧美色网站导航| 日韩伦理av电影| 国产成人aaaa| 欧美va亚洲va| 免费在线观看一区| 欧美丝袜第三区| 自拍视频在线观看一区二区| 国产毛片精品视频| 日韩一区二区免费高清| 亚洲一二三四区| 91毛片在线观看| 国产精品嫩草99a| 国产福利一区在线观看| 欧美本精品男人aⅴ天堂| 亚洲免费大片在线观看| 成人深夜在线观看| 国产蜜臀97一区二区三区| 狠狠色狠狠色综合| 久久久久久久久岛国免费| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 天天综合日日夜夜精品| 欧美美女一区二区在线观看| 婷婷成人激情在线网| 欧美一区欧美二区| 黑人巨大精品欧美一区| 久久嫩草精品久久久精品一| 国产成a人亚洲| 亚洲欧美一区二区三区极速播放| 在线视频一区二区免费| 午夜精品久久久久| 日韩一级视频免费观看在线| 精品亚洲国内自在自线福利| 久久亚区不卡日本| 91网站在线播放| 图片区小说区区亚洲影院| 日韩欧美一级精品久久| 国产1区2区3区精品美女| 亚洲视频在线观看一区| 欧美日韩aaa| 国产一区二区主播在线| 一区精品在线播放| 777亚洲妇女| 福利电影一区二区三区| 一区二区三区成人| 欧美一区二区三区视频免费|