广元煌褂旅行社

當(dāng)前位置:

Java考試格林模擬試題1

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

question 1)

which of the following lines will compile without warning or error.

1) float f=1.3;

2) char c="a";

3) byte b=257;

4) boolean b=null;

5) int i=10;  Ajs*+[j5h.u(uvnAjs*+[j5h.u(uvn

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

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

1)

import java.awt.*;package mypackage;class myclass {}

2)

package mypackage;import java.awt.*;class myclass{}

編輯推薦:

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

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

2頁(yè),當(dāng)前第1頁(yè)  第一頁(yè)  前一頁(yè)  下一頁(yè)
最近更新 考試動(dòng)態(tài) 更多>
青州市| 洪雅县| 高安市| 克拉玛依市| 金山区| 永康市| 金坛市| 卢龙县| 米脂县| 蒙阴县| 冀州市| 伊吾县| 横峰县| 华池县| 瑞昌市| 科尔| 双辽市| 沙洋县| 马边| 高邮市| 封丘县| 怀安县| 莲花县| 澄江县| 从江县| 关岭| 囊谦县| 竹北市| 得荣县| 万盛区| 邓州市| 黄山市| 辽宁省| 炎陵县| 扬中市| 玛多县| 郯城县| 元阳县| 西和县| 密云县| 景宁|