一级做a爱片,色站综合,99偷拍视频精品一区二区,亚洲精品色无码AV

當(dāng)前位置:

JAVA認(rèn)證《專業(yè)語(yǔ)言》五道經(jīng)典JAVA模擬題

發(fā)表時(shí)間:2015/4/13 11:28:22 來(lái)源:互聯(lián)網(wǎng) 點(diǎn)擊關(guān)注微信:關(guān)注中大網(wǎng)校微信
關(guān)注公眾號(hào)

module 1 – getting started

q1.what will happen when you compile and run the following code?

(4)

public class myclass{

static int i;

public static void main(string argv[]){

system.out.println(i);

}

}

1) error variable i may not have been initialized

2) null

3) 1

4) 0

q2.which of the following will compile without error (2)(3)

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{}

q3.what will happen if you try to compile and run the following code (1)

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]);

}

}

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

q4.given the following code(2)

public class sytch{

int x=2000;

public static void main(string argv[]){

system.out.println("ms "+argv[1]+"please pay $"+x);

}

what will happen if you attempt to compile and run this code with the command line

java sytch jones diggle

1) compilation and output of ms diggle please pay $2000

2) compile time error

3) compilation and output of ms jones please pay $2000

4) compilation but runtime error

q5.you have a public class called myclass with the main method defined as follows(4)

public static void main(string parm[]){

system.out.println(parm[0]);

}

if you attempt to compile the class and run the program as follows

java myclass hello

what will happen?

1) compile time error, main is not correctly defined

2) run time error, main is not correctly defined

3) compilation and output of java

4) compilation and output of hello

編輯推薦:

JAVA認(rèn)證考試報(bào)考指南 / 更多JAVA考試模擬試題

(責(zé)任編輯:xy)

2頁(yè),當(dāng)前第1頁(yè)  第一頁(yè)  前一頁(yè)  下一頁(yè)
最近更新 考試動(dòng)態(tài) 更多>
狠狠操夜夜爽| 日韩偷偷在线| 久久久精品999| 免费。 久久| 成人一二三区| 午夜福利久久久久久久| 爱爱av网站| 日韩1024| 欧洲毛片免费看| 蜜桃视频污| 四虎影院栏目国产精品| 久久免费a| 欧美激情视频一区二区三区免费| 超碰白嫩亚洲| 另类激情| 日韩精品无码久久久| 国产在线成人导航| 无码 人妻 在线 视频| 看看黄站国产| 男人天堂AV在| 爱涩av| 日本韩国欧美中文字幕| 日本少妇肉体裸交xxx| 欧美区一区二区| 亚洲精品午夜电影| 欧美人与动人物牲交免费观看 | 日韩久久成人电影| 激情网开心五月丁香| 国产精品VA在线观看无码| 国精品99| 国产欧美日产在线| 精品一级黄片| 国产精品老色鬼无码| 郁南县| 香蕉视频性爱小说| 久久久。av| 亚洲无码视频在线| 亚洲AV自拍一区| 激情亚洲国产欧美| 人妻无码AⅤ中文字幕视频56| 欧美成人网站导航|