当前位置:

Java考试格林模拟试题5

发表时间:2015/9/14 15:01:11 来源:互联网 点击关注微信:关注中大网校微信
关注公众号

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认证考试报考指南 / 更多JAVA考试模拟试题

(责任编辑:zyc)

2页,当前第1页  第一页  前一页  下一页
最近更新 考试动态 更多>

考试科目