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

當(dāng)前位置:

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

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

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認證考試報考指南 / 更多JAVA考試模擬試題

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

2頁,當(dāng)前第1頁  第一頁  前一頁  下一頁
最近更新 考試動態(tài) 更多>
com.黄色品善网| 国产精品成人插入| 91传媒激情亚洲| 永久无码色| 神马午夜久久| 玖玖欧洲| 三级小视频无毒| 337p人体粉嫩胞高清视频| 黄色自拍| 色动态五月天| 色综合欧美视频| 蜜臀AV一区二区| 免费啪啪啪啪网站| 天天搡操夜夜操| 色浮力在线导航| 自慰无码一区二区三区| 黑丝女天美传媒| 激情欧美一区二区三区中文字幕| 色色AV一区| 人妻精美久久| 被义子侵犯的漂亮人妻中字| 欧美幼呦| 日韩欧美一区不卡| 县级市| 少妇人妻无码中文| 黄片无码一区二区| 国产av一区最新精品| 不卡的日日AV| 丁香六月激| 五月激激激综合网亚洲| 亚洲男人天堂69| 精品亚洲欧美无人区乱码| 成年人在线观看99.| 三级大香蕉| 国产无码变态| 免费97超碰| 日韩精品高清在线观看| 美女毛片aⅴ| 中文字幕一区二区久久| 另类小说欧美| 少妇被粗大的猛烈进出69影院一|