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

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

?? mockcert03.txt

?? 一道JAVA方面的試題 很不錯(cuò)的 我很喜歡
?? TXT
?? 第 1 頁 / 共 5 頁
字號(hào):
3) The compiler will object to the char literal in line 3.


Question 48
===========================================================
You are writing code for a class which will be in the default package and will use the graphic components in the AWT package. Select the correct code fragment to start the source code file.

Fragment A: import java.awt.*;
Fragment B: package default; import java.awt.*; 
Fragment C: import java.awt.*; package default;

Mutiple: 
1) Code Fragment A
2) Code Fragment B
3) Code Fragment C


Question 49
===========================================================
The following lists the complete contents of the file named Derived.java.

public class Base extends Object{
  String objType;
  public Base(){ objType="I am a Base type";}
}

public class Derived extends Base{
  public Derived() { objType="I am a Derived type";}

  public static void main(String args[]){
    Derived D=new Derived();
  }
}

What will happen when this file is compiled?

Mutiple: 
1) Two class files, Base.class and Derived.class will be created.
2) The compiler will object to line one.
3) The compiler will object to line seven.


Question 50
===========================================================
Consider the following program:

public class Test {
 public static void main (String args []){
   boolean a = false;
   if (a = true) 
     System.out.println("Hello");
   Else
     System.out.println("Goodbye");
 }
} 

What is the result:

Mutiple: 
1) Program produces no output but terminates correctly.
2) Program does not terminate.
3) Prints out "Hello"
4) Prints out "Goodbye"


Question 51
===========================================================
Examine the following code which includes an inner class:

public final class Test4 implements A {
  class Inner {
    void test() {
        if (Test4.this.flag); {
            sample();
        }
    } 
  }

  private boolean flag = false;
    public void sample() {
      System.out.println("Sample");
    }

    public Test4() {
      (new Inner()).test();
    }

  public static void main(String args []) {
    new Test4();
  } 
}

What is the result:

Only One: 
1) Prints out "Sample"
2) Program produces no output but terminates correctly.
3) Program does not terminate.
4) The program will not compile


Question 52
===========================================================
Carefully examine the following class:

public class Test5{
 public static void main (String args []){
   /* This is the start of a comment
   if (true) {
      Test5 = new test5();
      System.out.println("Done the test");
   }
   /* This is another comment */
   System.out.println ("The end");
 }
}

What is the result:

Mutiple: 
1) Prints out "Done the test" and nothing else.
2) Program produces no output but terminates correctly.
3) Program does not terminate.
4) The program will not compile.
5) The program prints out "The end" and nothing else.


Question 53
===========================================================
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:

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


Question 54
===========================================================
Examine the following code:

public class Calc {
  public static void main (String args []) {
    int total = 0;
    for (int i = 0, j = 10; total > 30; ++i, --j) {
        System.out.println(" i = " + i + " : j = " + j);
        total += (i + j);
    }
    System.out.println("Total " + total);
  }
}
 

Does this code:

Mutiple: 
1) Produce a runtime error
2) Produce a compile time error
3) Print out "Total 0"
4) Generate the following as output:
i = 0 : j = 10
i = 1 : j = 9
i = 2 : j = 8
Total 30


Question 55
===========================================================
With which I/O operation can we append, update a file?

Mutiple: 
1) RandomAccessFile()
2) Outputstream()
3) DataOutputstream()


Question 56
===========================================================
What does it mean when the handleEvent() returns the true boolean?

Mutiple: 
1) the event will be handled by the componet.
2) the action() method will handle the event.
3) the event will be handled by the super.handleEvent()
4) do nothing


Question 57
===========================================================
Given is this class:

class Loop{
  public static void main(String[] agrs){
         int x=0;
         int y=0;

         outer:
         for(x=0;x<100;x++){
            middle:
            for(y=0;y<100;y++){
               System.out.println("x="+x+"; y="+y):
               if(y==10){
                 <<<insert code>>>
               }
            }
         }
  } // main
} // class

The question is which code must replace the <<<insert code>>> to finish the outerloop?

Mutiple: 
1) continue middle;
2) break outer;
3) break middle;
4) continue outer;
5) none of these


Question 58
===========================================================
What is the target variable in an Event?

Mutiple: 
1) the Object() where the event came from
2) the Object() where the event is destined for
3) what the Object() that generated the event was doing.


Question 59
===========================================================
The following code resides in the source?

class StringTest{
  public static void main(String[] args){
    //
    // String comparing
    //
    String a,b;
    StringBuffer c,d;
    c=new StringBuffer("Hello");
    a=new String("Hello");
    b=a;
    d=c;
    if( <<<operator>>> ) {}
  }
} // class

Which of the following statement return true for the <<<operator>>> line in StringTest.class?

Mutiple: 
1) b.equals(a)
2) b==a
3) d==c
4) d.equals(c)


Question 60
===========================================================
Which are valid identifiers?

Mutiple: 
1) %fred
2) *fred
3) thisfred
4) 2fred
5) fred


Question 61
===========================================================
What will happen when you attempt to compile and run this code?

abstract class Base{
        abstract public void myfunc();
        public void another(){
        System.out.println("Another method");
        }
}

public class Abs extends Base{
        public static void main(String argv[]){
        Abs a = new Abs();
        a.amethod();
        }
        public void myfunc(){
                System.out.println("My Func");
                } 
        public void amethod(){
        myfunc();      
        }
}

Only One: 
1) The code will compile and run, printing out the words "My Func"
2) The compiler will complain that the Base class has non abstract methods
3) The code will compile but complain at run time that the Base class has non abstract methods
4) The compiler will complain that the method myfunc in the base class has no body, nobody at all to looove it


Question 62
===========================================================
What will happen when you attempt to compile and run this code? 


public class MyMain{
public static void main(String argv){
        System.out.println("Hello cruel world");
        }
}

Mutiple: 
1) The compiler will complain that main is a reserved word and cannot be used for a class
2) The code will compile and when run will print out "Hello cruel world"
3) The code will compile but will complain at run time that no constructor is defined
4) The code will compile but will complain at run time that main is not correctly defined


Question 63
===========================================================
Which of the following are Java modifiers?

Mutiple: 
1) public
2) private
3) friendly
4) transient
5) vagrant


Question 64
===========================================================
What will happen when you attempt to compile and run this code?

class Base{
        abstract public void myfunc();
        public void another(){
        System.out.println("Another method");
        }
}

public class Abs extends Base{
        public static void main(String argv[]){
        Abs a = new Abs();
        a.amethod();
        }

        public void myfunc(){
                System.out.println("My func");
                } 

        public void amethod(){
        myfunc();
        }
}

Mutiple: 
1) The code will compile and run, printing out the words "My Func"
2) The compiler will complain that the Base class is not declared as abstract.
3) The code will compile but complain at run time that the Base class has non abstract methods
4) The compiler will complain that the method myfunc in the base class has no body, nobody at all to looove it


Question 65
===========================================================
Why might you define a method as native?

Mutiple: 
1) To get to access hardware that Java does not know about
2) To define a new data type such as an unsigned integer
3) To write optimised code for performance in a language such as C/C++
4) To overcome the limitation of the private scope of a method


Question 66
===========================================================
What will happen when you attempt to compile and run this code?


class Base{
public final void amethod(){
        System.out.println("amethod");

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久99久久久精品齐齐| 中文字幕不卡在线| 欧美精品乱码久久久久久| 色综合天天综合给合国产| av毛片久久久久**hd| 成人小视频在线| 顶级嫩模精品视频在线看| 国产成人在线视频免费播放| 国产精品18久久久久久久久久久久| 韩国毛片一区二区三区| 狠狠狠色丁香婷婷综合久久五月| 国产乱码精品一区二区三区忘忧草| 国产尤物一区二区| 成人av资源下载| 色综合中文字幕国产 | 综合久久综合久久| 亚洲伦理在线免费看| 一区二区免费看| 日韩福利电影在线| 激情综合色播激情啊| 风流少妇一区二区| 在线观看中文字幕不卡| 欧美精品国产精品| 精品国产自在久精品国产| 国产欧美日产一区| 亚洲综合免费观看高清完整版| 亚洲超碰精品一区二区| 久久99精品久久久久久动态图| 国产成人综合亚洲网站| 色呦呦国产精品| 日韩情涩欧美日韩视频| 国产欧美综合色| 亚洲一区二区三区四区五区中文| 日韩精品成人一区二区在线| 国产精品99久久久久久宅男| 一本大道久久a久久精品综合| 日韩午夜在线影院| 中文字幕一区二区三区乱码在线 | 久久av中文字幕片| 成人激情av网| 欧美高清www午色夜在线视频| 久久久久久一级片| 亚洲一区av在线| 国模少妇一区二区三区| 一本在线高清不卡dvd| 欧美一级黄色录像| 亚洲日本va午夜在线电影| 蜜臀av性久久久久蜜臀aⅴ| 成人午夜看片网址| 91.com视频| 中文字幕在线观看一区二区| 奇米777欧美一区二区| 99精品视频一区| 精品国产一区二区精华| 亚洲自拍欧美精品| 国产91丝袜在线18| 欧美精品久久久久久久久老牛影院| 国产区在线观看成人精品| 日韩av在线免费观看不卡| 91色porny蝌蚪| 国产清纯美女被跳蛋高潮一区二区久久w| 亚洲午夜久久久久久久久电影院| 国产一区欧美一区| 欧美精品久久一区| 亚洲美女视频一区| 国产乱对白刺激视频不卡| 欧美人妇做爰xxxⅹ性高电影| 国产欧美一区二区精品忘忧草| 日本欧美在线观看| 色婷婷综合久久久久中文一区二区| 欧美成人午夜电影| 亚洲6080在线| 在线观看免费视频综合| 国产精品嫩草影院av蜜臀| 亚洲综合一区二区精品导航| 成人av免费网站| 久久久噜噜噜久噜久久综合| 秋霞影院一区二区| 欧美日韩国产免费| 一区二区三区精品在线| 91在线视频观看| 国产精品久久二区二区| 国产二区国产一区在线观看| 欧美日韩亚洲高清一区二区| 亚洲综合免费观看高清完整版在线| av一二三不卡影片| 国产日韩成人精品| 国产成人精品亚洲日本在线桃色| 精品卡一卡二卡三卡四在线| 奇米一区二区三区| 3751色影院一区二区三区| 五月激情六月综合| 欧美老女人第四色| 天天色图综合网| 88在线观看91蜜桃国自产| 亚洲电影一区二区| 欧美日韩亚洲综合在线 | 国产成人夜色高潮福利影视| 精品福利视频一区二区三区| 麻豆精品精品国产自在97香蕉| 91麻豆精品国产91久久久更新时间| 亚洲一区在线观看免费观看电影高清 | 久久99久久久欧美国产| 日韩欧美国产不卡| 久久99九九99精品| 精品sm捆绑视频| 国产精品自拍一区| 国产欧美日本一区二区三区| 粗大黑人巨茎大战欧美成人| 国产欧美va欧美不卡在线| 成人99免费视频| 亚洲欧洲综合另类在线| 欧美日韩一卡二卡三卡| 日韩—二三区免费观看av| 精品三级在线看| 国产成人av一区二区| 日韩毛片视频在线看| 在线观看欧美黄色| 蜜臀国产一区二区三区在线播放| 26uuu亚洲综合色| 国产成人在线电影| 亚洲男同性视频| 欧美精品aⅴ在线视频| 久热成人在线视频| 国产精品女主播av| 欧美综合亚洲图片综合区| 丝袜亚洲另类欧美综合| 日韩久久免费av| 懂色av一区二区三区免费观看| 亚洲美女精品一区| 91精品免费观看| 国产福利一区在线观看| 亚洲欧美偷拍卡通变态| 欧美日韩免费视频| 国产在线一区观看| 亚洲女与黑人做爰| 日韩一区二区在线看| 顶级嫩模精品视频在线看| 亚洲观看高清完整版在线观看| 日韩免费电影一区| 99久久99久久精品免费看蜜桃| 五月开心婷婷久久| 日本一区二区三区国色天香 | 精品一区二区三区免费观看 | 日韩在线卡一卡二| 中文字幕精品—区二区四季| 欧美日韩亚洲国产综合| 国产成人午夜电影网| 亚洲午夜电影网| 久久久久久久av麻豆果冻| 欧美午夜寂寞影院| 国产成人超碰人人澡人人澡| 亚洲成av人在线观看| 日本一区二区成人| 欧美电影一区二区| 99精品黄色片免费大全| 色偷偷一区二区三区| 久久成人av少妇免费| 亚洲精品美腿丝袜| 国产日韩欧美制服另类| 欧美一区二区在线视频| 成人va在线观看| 国产一区二区三区免费播放| 亚洲丰满少妇videoshd| 国产无遮挡一区二区三区毛片日本| 欧美日韩不卡在线| 91免费观看在线| 国产一区欧美二区| 免费观看久久久4p| 亚洲尤物在线视频观看| 国产精品麻豆99久久久久久| 欧美成人综合网站| 欧美乱妇一区二区三区不卡视频| av不卡免费在线观看| 国产精品99久久久久久久女警| 日韩影视精彩在线| 一区二区三区91| 亚洲色图欧洲色图| 欧美国产精品一区| 久久综合九色综合97婷婷女人 | 一区二区久久久久久| 中文字幕第一页久久| 亚洲精品一区二区在线观看| 欧美日韩一二三区| 欧美又粗又大又爽| 91久久免费观看| 一道本成人在线| 97se亚洲国产综合在线| 成人国产精品免费| 高清成人在线观看| 国产成人av电影| 国产伦精品一区二区三区免费| 蜜乳av一区二区| 男女视频一区二区| 日韩精品五月天| 日韩专区中文字幕一区二区| 偷拍自拍另类欧美| 亚洲一区在线观看免费观看电影高清 | 国产亚洲精品中文字幕| 337p日本欧洲亚洲大胆精品|