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

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

?? mockcert03.txt

?? 一道JAVA方面的試題 很不錯(cuò)的 我很喜歡
?? TXT
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
Question 1
===========================================================
Which of the following lines will compile without warning or error.

Mutiple: 
1) float f = 1.3;
2) char c = "a";
3) byte b = 257;
4) boolean b = null;
5) int i = 10;


Question 2
===========================================================
What will happen if you try to compile and run the following code

public class MyClass {
  public static void main(String arguments[]){
    amethod(arguments);
  }
  public void amethod(String[] arguments){
    System.out.println(arguments);
    System.out.println(arguments[1]);
  }
}

Mutiple: 
1) error Can't make static reference to void amethod.
2) error method main not correct
3) error array must include parameter
4) amethod must be declared with String


Question 3
===========================================================
Which of the following will compile without error

Mutiple: 
1) import java.awt.*;
package Mypackage;
class Myclass {}
2) package MyPackage;
import java.awt.*;
class MyClass{}
3) /*This is a comment */
package MyPackage;
import java.awt.*;
class MyClass{}


Question 4
===========================================================
A byte can be of what size

Mutiple: 
1) -128 to 127
2) (-2 power 8 )-1 to 2 power 8
3) -255 to 256
4) depends on the Java Virtual machine


Question 5
===========================================================
What will be printed out if this code is run with the following command line
java myprog good morning

public class myprog{
  public static void main(String argv[]){
    System.out.println(argv[2])
  }
}

Mutiple: 
1) myprog
2) good
3) morning
4) Exception raised: "java.lang.ArrayIndexOutOfBoundsException: 2"


Question 6
===========================================================
Which of the following are legal identifiers

Mutiple: 
1) 2variable
2) variable2
3) _whatavariable
4) _3_
5) $anothervar


Question 7
===========================================================
Which of the following are java reserved words

Mutiple: 
1) if
2) then
3) goto
4) while
5) case


Question 8
===========================================================
What will happen when you compile the following code

public class MyClass{
  static int i; 
  public static void main(String argv[]){
    System.out.println(i);
  }
}

Only One: 
1) Error Variable i may not have been initialized
2) null
3) 1
4) 0


Question 9
===========================================================
What will happen if you try to compile and run the following code

public class Q {
  public static void main(String argv[]){
    int anar[]= new int[]{1,2,3};

    System.out.println(anar[1]);//此題答案有錯(cuò),應(yīng)當(dāng)是3)
  }
}

Mutiple: 
1) 1
2) Error anar is referenced before it is initialized
3) 2
4) Error size of array must be defined


Question 10
===========================================================
What will happen if you try to compile and run the following code

public class Q {
  public static void main(String argv[]){
    int anar[]= new int[5];

    System.out.println(anar[0]);
  }
}

Mutiple: 
1) Error: anar is referenced before it is initialized
2) null
3) 0
4) 5


Question 11
===========================================================
What will be the result of attempting to compile and run the following code

abstract class MineBase {
  abstract void amethod(); 
  static int i;
}

public class Mine extends MineBase{
  public static void main(String argv[]){
    int[] ar = new int[5];
    for(i = 0;i < ar.length;i++)
       System.out.println(ar[i]);
    }
}

Mutiple: 
1) a sequence of 5 0's will be printed
2) Error: ar is used before it is initialized
3) Error Mine must be declared abstract
4) IndexOutOfBoundes Error i


Question 12
===========================================================
What will be printed out if you attempt to compile and run the following code

int i = 1;
switch (i) {
  case 0:
         System.out.println("zero");
         break;
  case 1:
         System.out.println("one");
  case 2:
         System.out.println("two");
  default:
         System.out.println("default");
}

Mutiple: 
1) one
2) one, default
3) one, two, default
4) default


Question 13
===========================================================
What will be printed out if you attempt to compile and run the following code

int i = 9;
switch (i) {
       default:
              System.out.println("default");
       case 0:
              System.out.println("zero");
              break;
       case 1:
              System.out.println("one");
       case 2:
              System.out.println("two");
}

Mutiple: 
1) default
2) default, zero
3) error default clause not defined
4) no output displayed


Question 14
===========================================================
Which of the following lines of code will compile without error

Mutiple: 
1) int i=0;
if(i){
      System.out.println("Hello");
}
2) boolean b = true;
boolean b2 = true;
if(b==b2){
   System.out.println("So true");
}
3) int i=1;
int j = 2;
if(i ==1|| j==2)
System.out.println("OK");
4) int i=1;
int j = 2;
if(i ==1 &| j==2)
System.out.println("OK");


Question 15
===========================================================
What will be output if you try to compile and run the following code and and there is 
no file called Hello.txt in the current directory.

import java.io.*;
public class Mine{
  public static void main(String argv[]){

      Mine m = new Mine();
      System.out.println(m.amethod());
  }

  public int amethod(){
      try {
           FileInputStream dis = new FileInputStream("Hello.txt");
      }catch (FileNotFoundException fne) {
           System.out.println("No such file found");
           return -1;
      }catch(IOException ioe) {
      }finally{
           System.out.println("Doing finally");
      }
      return 0;
  }
}

Mutiple: 
1) No such file found
2) No such file found ,-1
3) No such file found, doing finally, -1
4) 0


Question 16
===========================================================
What tags are mandatory when creating HTML to display an applet

Mutiple: 
1) name, height, width
2) code, name
3) codebase, height, width
4) code, height, width


Question 17
===========================================================
What will happen if you attempt to compile and run the following code

class Base {}
class Sub extends Base {}
class Sub2 extends Base {}

public class CEx{
  public static void main(String argv[]){
    Base b = new Base();
    Sub s = (Sub) b;
  }
}

Only One: 
1) Compile and run without error
2) Compile time Exception
3) Runtime Exception


Question 18
===========================================================
If the following HTML code is used to display the applet in the code MgAp what will be displayed at the console.

<applet code = MgAp.class height=400 width=400 parameter HowOld=30 > 
</applet>

import java.applet.*;
import java.awt.*;
public class MgAp extends Applet{

public void init(){
  System.out.println(getParameter("age"));
}
}

Mutiple: 
1) Error no such parameter
2) 0
3) null
4) 30


Question 19
===========================================================
You are browsing the Java HTML documentation for information on the java.awt.TextField component. You want to create Listener code to respond to focus events. The only Listener method listed is addActionListener. How do you go about finding out about Listener methods.

Mutiple: 
1) Define your own Listener interface according to the event to be tracked
2) Use the search facility in the HTML documentation for the listener needed
3) Move up the hierarchy in the HTML documentation to locate methods in base 
classes
4) Subclass awt.event with the appropriate Listener method


Question 20
===========================================================
What will be displayed when you attempt to compile and run the following code

//Code start
import java.awt.*;

public class Butt extends Frame{
  public static void main(String argv[]){
    Butt MyBut= new Butt(); 
  }

  Butt(){
    Button HelloBut = new Button("Hello");
    Button ByeBut = new Button("Bye");
    add(HelloBut);
    add(ByeBut);
    setSize(300,300);
    setVisible(true);
  }
}//Code end

Only One: 
1) ) Two buttons side by side occupying all of the frame, Hello on the left and Bye on 
the right
2) One button occupying the entire frame saying Hello
3) One button occupying the entire frame saying Bye
4) Two buttons at the top of the frame one saying Hello the other saying Bye


Question 21
===========================================================
In the following code fragment from an applet, we know that the getParameter call may return a null if there is no parameter named size. Which logical operator should replace X in line 5 to ensure that a NullPointerException is not generated if tmp is null.

1. int sz;
2. public void init(){
3.   sz=10;
4.   String tmp=getParameter("size");
5.   if(tmp!=null X tmp.equals("BIG")) sz=20;
6. }

Mutiple: 
1) Replace X with '&'
2) Replace X with '&&'
3) Replace X with '|'
4) Replace X with '||'


Question 22
===========================================================
Which of the following statements results in C containing the special "Not a Number" value?

Mutiple: 
1) float C=1234.0F/0.0F;
2) float C=(float)java.lang.Math.sqrt(-1.0);
3) float C=Float.MIN_VALUE/Float.MAX_VALUE;


Question 23
===========================================================
You are writing a java class in a file named "MyClass.java", this class must be accessible by all classes in a large project. Which of the following would be correct class declarations?

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看成人小视频| 日韩亚洲欧美成人一区| 蜜臀av性久久久久蜜臀av麻豆| 久久久电影一区二区三区| 在线视频一区二区三区| 成人午夜碰碰视频| 另类人妖一区二区av| 亚洲精品国产a久久久久久| 久久久久久99久久久精品网站| 欧美日韩专区在线| 本田岬高潮一区二区三区| 狠狠狠色丁香婷婷综合久久五月| 亚洲国产精品自拍| **欧美大码日韩| 国产欧美一区二区精品忘忧草 | 欧美日韩综合色| 成人avav影音| 国产999精品久久| 日本欧美久久久久免费播放网| 亚洲精选一二三| 最近日韩中文字幕| 久久久久久免费毛片精品| 日韩一区二区在线看| 91精品欧美久久久久久动漫| 在线观看一区二区视频| 色哟哟在线观看一区二区三区| 国产99久久精品| 国产成人av影院| 国产二区国产一区在线观看| 国产美女一区二区三区| 狠狠狠色丁香婷婷综合激情| 国内不卡的二区三区中文字幕| 麻豆国产欧美一区二区三区| 日本欧美在线看| 美美哒免费高清在线观看视频一区二区 | 日韩一级二级三级| 91精品午夜视频| 欧美一区二区三区思思人| 在线电影国产精品| 91精品国产91综合久久蜜臀| 欧美日韩黄色影视| 69精品人人人人| 欧美一三区三区四区免费在线看| 欧美高清www午色夜在线视频| 欧美日韩一区二区在线视频| 欧美色偷偷大香| 欧美妇女性影城| 91麻豆精品国产91久久久久 | 91污片在线观看| 色综合久久中文字幕| 欧洲精品中文字幕| 在线免费观看日本一区| 欧美日韩国产在线观看| 日韩三级.com| 国产欧美一区视频| 亚洲欧美国产三级| 亚洲成人精品一区二区| 七七婷婷婷婷精品国产| 国产精品亚洲专一区二区三区| 久久国产精品色婷婷| 国产高清精品网站| 色哟哟精品一区| 欧美精品乱码久久久久久按摩| 精品免费日韩av| 亚洲国产精品精华液ab| 亚洲精品国产一区二区精华液| 日本欧美一区二区| 成人av动漫在线| 欧美日韩视频专区在线播放| 精品理论电影在线观看| 日韩毛片在线免费观看| 蜜桃av一区二区三区| 播五月开心婷婷综合| 欧美在线综合视频| 欧美精品一区二区三区蜜臀| 中文字幕一区二区在线观看| 日韩激情中文字幕| 成人短视频下载| 在线电影国产精品| 国产精品水嫩水嫩| 日韩国产精品久久久久久亚洲| 国产成人高清视频| 欧美群妇大交群中文字幕| 久久久九九九九| 五月婷婷激情综合| 成人黄色av电影| 日韩欧美国产成人一区二区| 中文字幕一区二区三区不卡| 男女性色大片免费观看一区二区| 成人黄色在线看| 日韩欧美一级二级| 亚洲最快最全在线视频| 国产一区二区在线免费观看| 欧美三级一区二区| 欧美经典一区二区| 日韩成人免费在线| 91福利资源站| 国产精品久久久久久亚洲伦| 免费在线观看一区二区三区| 99国内精品久久| 亚洲精品一区二区三区蜜桃下载 | 日本系列欧美系列| 91免费看片在线观看| 337p日本欧洲亚洲大胆色噜噜| 亚洲福利国产精品| 色综合天天天天做夜夜夜夜做| 亚洲一区免费观看| 成人精品高清在线| 久久综合色之久久综合| 日韩成人午夜电影| 欧美体内she精高潮| 综合久久给合久久狠狠狠97色 | 成人免费精品视频| 久久久久久麻豆| 老司机免费视频一区二区| 欧美二区乱c少妇| 亚洲午夜国产一区99re久久| 色婷婷精品久久二区二区蜜臂av| 中文乱码免费一区二区| 国产激情偷乱视频一区二区三区| 欧美zozo另类异族| 精品一区二区三区免费毛片爱| 91精品国产色综合久久不卡电影| 亚洲午夜免费视频| 在线中文字幕一区二区| 一区二区三区在线观看视频| 色综合久久久久久久| 国产日韩欧美一区二区三区乱码 | 欧美日韩在线观看一区二区 | 日韩国产在线观看一区| 欧美人伦禁忌dvd放荡欲情| 午夜精品一区二区三区三上悠亚| 欧美亚洲高清一区二区三区不卡| 亚洲视频一区二区在线| 91欧美激情一区二区三区成人| 亚洲精品视频在线观看网站| 成人av手机在线观看| ...av二区三区久久精品| 91在线观看一区二区| 亚洲欧洲三级电影| 日本乱码高清不卡字幕| 亚洲一区在线视频| 欧美日韩成人综合在线一区二区| 午夜精品福利视频网站| 91精品国产综合久久久久久漫画| 日韩高清在线电影| 日韩欧美国产午夜精品| 国产一区二区三区黄视频| 国产精品色哟哟网站| 色综合色狠狠综合色| 亚洲一区在线观看视频| 91麻豆精品国产91久久久| 黑人精品欧美一区二区蜜桃| 国产日本亚洲高清| 色综合久久久久综合体| 婷婷开心激情综合| 精品久久久久久久久久久久久久久 | 欧美韩日一区二区三区| 99精品久久免费看蜜臀剧情介绍 | 欧美另类一区二区三区| 日韩电影免费在线观看网站| 精品一区二区久久久| 一区二区三区视频在线看| 欧美狂野另类xxxxoooo| 精品欧美黑人一区二区三区| 国产一区二区91| 亚洲老妇xxxxxx| 51午夜精品国产| 国产精品久久久久影院| 韩国成人在线视频| av男人天堂一区| 伊人夜夜躁av伊人久久| 日韩欧美一区二区在线视频| 国产成人自拍在线| 玉足女爽爽91| 久久综合资源网| 色爱区综合激月婷婷| 精品一区二区三区视频在线观看| 欧美激情艳妇裸体舞| 欧美久久久影院| 成人综合在线视频| 日本不卡123| 亚洲少妇30p| 精品第一国产综合精品aⅴ| 91美女片黄在线观看91美女| 91精品国产高清一区二区三区| 粉嫩久久99精品久久久久久夜| 一区二区三区自拍| 精品国产乱码久久久久久老虎 | 国产精品主播直播| 一区二区三区在线看| 国产日韩欧美亚洲| 欧美一区在线视频| 国产精品灌醉下药二区| 日韩欧美一区中文| 欧美性感一区二区三区| 懂色一区二区三区免费观看| 丝袜诱惑亚洲看片| 亚洲影视在线观看| 136国产福利精品导航|