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

當(dāng)前位置:

Java考試格林模擬試題5

發(fā)表時(shí)間:2015/9/14 15:01:11 來(lái)源:互聯(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頁(yè),當(dāng)前第1頁(yè)  第一頁(yè)  前一頁(yè)  下一頁(yè)
最近更新 考試動(dòng)態(tài) 更多>
九江市| 福泉市| 沙洋县| 兰坪| 金平| 舟曲县| 马山县| 乌恰县| 洞口县| 福鼎市| 马龙县| 桦南县| 资兴市| 阿克| 宽城| 吉木乃县| 仙游县| 无棣县| 宝丰县| 雅江县| 郁南县| 岑溪市| 鹰潭市| 张家界市| 石阡县| 营山县| 远安县| 临沂市| 闸北区| 河北省| 乌鲁木齐县| 乌拉特中旗| 米泉市| 龙南县| 融水| 福建省| 株洲县| 濮阳市| 饶平县| 会同县| 韶山市|