广元煌褂旅行社

當(dāng)前位置:

Java考試格林模擬試題5

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

question 16)

which of the following statements are true?

1) methods cannot be overriden to be more private

2) static methods cannot be overloaded

3) private methods cannot be overloaded

4) an overloaded method cannot throw exceptions not checked in the base class

question 17)

what will happen if you attempt to compile and run the following code?

class base {}class sub extends base {}class sub2 extends base {}public class cex{ public static void main(string argv[]){ base b=new base(); sub s=(sub) b; }}

1) compile and run without error

2) compile time exception

3) runtime exception

question 18)

which of the following statements are true?

1) system.out.println( -1 >>> 2);will output a result larger than 10

2) system.out.println( -1 >>> 2); will output a positive number

3) system.out.println( 2 >> 1); will output the number 1

4) system.out.println( 1 <<< 2); will output the number

編輯推薦:

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

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

2頁,當(dāng)前第1頁  第一頁  前一頁  下一頁
最近更新 考試動(dòng)態(tài) 更多>
岗巴县| 集贤县| 环江| 嘉鱼县| 大姚县| 梅州市| 泾源县| 同仁县| 洪雅县| 皋兰县| 偃师市| 泰顺县| 东港市| 正宁县| 伊宁县| 泰州市| 天水市| 吉林省| 山阳县| 海淀区| 鄱阳县| 景谷| 新河县| 辉南县| 芜湖市| 南昌市| 临邑县| 双桥区| 沙坪坝区| 稻城县| 梧州市| 晴隆县| 若尔盖县| 饶平县| 滕州市| 黄骅市| 大邑县| 嘉义县| 盘锦市| 永修县| 枝江市|