JAVA认证

Java考试格林模拟习题

时间:2024-09-09 17:21:16 JAVA认证 我要投稿
  • 相关推荐

Java考试格林模拟习题

  question 16)

Java考试格林模拟习题

  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模拟试题及答案07-10

2017年安全员考试模拟习题及答案06-23

监理员考试专业实务模拟习题及答案09-05

2017年最新普通话考试模拟习题07-22

2017咨询工程师考试模拟习题及答案10-02

2017证券从业资格考试模拟练习题10-10

2017管理咨询师预测考试模拟习题及答案09-12

最新国际商务单证员考试模拟习题及答案10-22

2017质检员考试模拟练习题及答案08-02

2017管理咨询师考试预测模拟习题及答案08-10