常州酌乒文化传播有限公司

當(dāng)前位置:

JAVA認(rèn)證考試專業(yè)語言模擬試題小測天天練6

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

Question: 4

Given the following definition:

String s = story;

Which of the following expressions are legal?

A. s += books;

B. char c = s[1];

C. int len = s.length;

D. String t = s.toLowerCase();

Explanation:

Answer B is not correct for String is a class and can'T be treated as an array of char. Answer C is not correct for s.length() should be used, not s.length.

Correct Answer: A,D 4 of 60

Question: 5

What is the return value of the main() method in Java?

A. String

B. int

C. char

D. void

Explanation:

The main() method in Java returns void.

Correct Answer: D 5 of 60

編輯推薦:

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


(責(zé)任編輯:)

2頁,當(dāng)前第1頁  第一頁  前一頁  下一頁
最近更新 考試動態(tài) 更多>
汕头市| 湘潭县| 高青县| 杭州市| 获嘉县| 沾化县| 永城市| 湘阴县| 专栏| 靖宇县| 威宁| 印江| 乐都县| 延川县| 平潭县| 白沙| 田阳县| 抚宁县| 嘉禾县| 崇左市| 绥阳县| 稷山县| 霞浦县| 泰和县| 龙游县| 甘南县| 吴桥县| 鄂伦春自治旗| 普定县| 桂东县| 宾川县| 湛江市| 宜春市| 东海县| 灯塔市| 中西区| 织金县| 东乌珠穆沁旗| 巴中市| 额敏县| 公主岭市|