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

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

?? mockcert02.txt

?? JAVA方面的一道練習(xí)試題 很好的 很不錯(cuò)的
?? TXT
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
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
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜欧美2019年伦理 | 一区二区在线观看免费| 日本丰满少妇一区二区三区| 日韩黄色小视频| 国产精品对白交换视频| 日韩午夜激情视频| 在线视频国内一区二区| 丁香网亚洲国际| 极品美女销魂一区二区三区免费| 亚洲人成7777| 中文字幕成人av| 2024国产精品视频| 91精品国产日韩91久久久久久| 色综合夜色一区| 粉嫩欧美一区二区三区高清影视| 日本成人中文字幕| 一区二区成人在线| 国产精品情趣视频| 国产欧美久久久精品影院| 欧美精品一区二区三区高清aⅴ| 欧美体内she精视频| 91视视频在线观看入口直接观看www | 久久综合色综合88| 欧美一区午夜视频在线观看| 日本高清不卡视频| 色综合久久综合网97色综合| 成人动漫一区二区| 成人久久18免费网站麻豆| 国产一区二区免费视频| 免费在线观看精品| 人人精品人人爱| 蜜桃视频在线观看一区二区| 天天爽夜夜爽夜夜爽精品视频| 亚洲精品视频观看| 亚洲自拍欧美精品| 亚洲一区二区三区小说| 亚洲中国最大av网站| 亚洲妇女屁股眼交7| 亚洲综合久久久久| 午夜精品国产更新| 日韩中文字幕区一区有砖一区| 亚洲成人av免费| 亚洲综合视频在线观看| 亚洲成人av福利| 日韩 欧美一区二区三区| 首页国产丝袜综合| 日本特黄久久久高潮| 青青草精品视频| 韩国精品一区二区| 国产美女精品在线| 成人av影院在线| 91丝袜美女网| 欧美日韩国产美女| 日韩一区二区三区四区五区六区| 91精品国产综合久久久久久| 911精品国产一区二区在线| 7777女厕盗摄久久久| 欧美大片在线观看| 欧美激情一区二区三区在线| 亚洲私人黄色宅男| 亚洲图片欧美综合| 美女国产一区二区三区| 国产乱妇无码大片在线观看| 99精品一区二区三区| 欧美午夜免费电影| 欧美zozozo| 亚洲人成在线观看一区二区| 亚洲一区在线观看免费观看电影高清 | 人人精品人人爱| 国产成人在线视频网址| 色综合久久88色综合天天 | 日韩美女视频一区| 水蜜桃久久夜色精品一区的特点 | 伊人色综合久久天天人手人婷| 午夜久久久久久久久久一区二区| 美国毛片一区二区| 99久久99久久精品免费观看| 欧美三级视频在线| 久久久久久免费毛片精品| 亚洲欧美日韩一区二区三区在线观看| 丝袜诱惑制服诱惑色一区在线观看| 久久草av在线| 在线观看精品一区| 26uuu国产在线精品一区二区| 国产精品成人一区二区三区夜夜夜| 亚洲午夜一区二区三区| 国产精品一区一区| 欧美日韩成人在线| 中文字幕欧美三区| 喷水一区二区三区| 91色porny在线视频| 日韩精品一区二| 亚洲一区二区三区四区中文字幕| 国产在线精品免费av| 欧美中文一区二区三区| 国产亚洲欧洲一区高清在线观看| 亚洲一区二区三区中文字幕| 国产91综合一区在线观看| 欧美一区二区不卡视频| 亚洲精品菠萝久久久久久久| 国产精品一级黄| 51精品国自产在线| 亚洲视频狠狠干| 国产电影一区在线| 日韩欧美色综合| 亚洲电影中文字幕在线观看| 成人午夜激情视频| 久久一区二区三区四区| 午夜激情综合网| 在线观看视频91| 国产精品国产三级国产aⅴ入口 | 中文字幕字幕中文在线中不卡视频| 久久精品免费观看| 51精品久久久久久久蜜臀| 一区二区在线观看不卡| av亚洲精华国产精华精华| 久久婷婷色综合| 另类成人小视频在线| 91精品国产高清一区二区三区蜜臀| 亚洲日本欧美天堂| eeuss国产一区二区三区| 久久嫩草精品久久久精品一| 日韩电影在线免费看| 欧美日韩一区二区在线观看| 亚洲免费伊人电影| 色视频一区二区| 综合久久综合久久| jlzzjlzz亚洲女人18| 国产精品久久久久久久第一福利| 国产精品一区二区x88av| 国产精品午夜免费| 国产精品中文字幕欧美| 精品国产乱码久久久久久闺蜜| 日韩精品视频网站| 欧美美女bb生活片| 亚洲国产视频一区二区| 欧美色综合影院| 亚洲国产精品精华液网站| 欧美丝袜自拍制服另类| 午夜精品久久久久久久99水蜜桃| 欧美久久久久久久久| 日本最新不卡在线| 欧美精品一区男女天堂| 国产电影一区二区三区| 中文字幕一区二区三区不卡| 99re这里都是精品| 亚洲一区在线播放| 这里是久久伊人| 精品夜夜嗨av一区二区三区| 久久综合五月天婷婷伊人| 成人黄色国产精品网站大全在线免费观看 | 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 亚洲激情欧美激情| 欧美日韩一区二区在线视频| 日本人妖一区二区| 2欧美一区二区三区在线观看视频| 久久机这里只有精品| 国产亚洲精久久久久久| 972aa.com艺术欧美| 性做久久久久久| 日韩美女主播在线视频一区二区三区 | 亚洲国产日韩精品| 日韩视频国产视频| 国产成人福利片| 亚洲免费观看视频| 日韩欧美精品在线视频| 成人免费视频一区| 亚洲午夜av在线| 亚洲精品一线二线三线| 99国产精品视频免费观看| 亚洲国产中文字幕| 久久久久久久综合| 色婷婷综合在线| 久久精品国产免费| 亚洲少妇30p| 日韩精品一区二区三区三区免费| 成人毛片在线观看| 欧美aaaaa成人免费观看视频| 国产欧美一区二区三区鸳鸯浴| 一本大道久久精品懂色aⅴ| 久久99精品一区二区三区三区| 亚洲同性gay激情无套| 日韩欧美综合一区| 91美女片黄在线| 国产一区二区精品久久99| 一级女性全黄久久生活片免费| 26uuu国产日韩综合| 91福利资源站| 懂色一区二区三区免费观看| 手机精品视频在线观看| 亚洲欧美综合色| 精品国精品国产| 精品视频免费在线| 成人小视频在线观看| 日韩av一区二| 亚洲精品v日韩精品| 国产欧美日韩综合| 欧美一三区三区四区免费在线看| 色香色香欲天天天影视综合网| 国产一区二区三区电影在线观看 |