好吊妞这里只有精品_美女视频黄a视频全免费应用_亚洲区一二三四区2021_色多多污污下载

當前位置:

JAVA認證考試專業語言模擬試題小測天天練6

發表時間:2015/6/8 11:37:18 來源:互聯網 點擊關注微信:關注中大網校微信
關注公眾號

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


(責任編輯:)

2頁,當前第1頁  第一頁  前一頁  下一頁
最近更新 考試動態 更多>

考試科目