Java考試格林模擬習題

時間:2024-07-21 03:30:13 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考試格林模擬試題10-22

Java考試格林練習題07-18

java考試習題及答案07-27

2017年java考試模擬試題05-31

司法考試沖刺模擬習題08-11

java習題及答案10-25

Java筆試模擬試卷10-18

JAVA模擬試題及答案10-18

2016跟單員考試《基礎理論》模擬習題08-31

2017單證員考試模擬輔導習題07-04

亚洲制服丝袜二区欧美精品,亚洲精品无码视频乱码,日韩av无码一区二区,国产人妖视频一区二区
欧美日韩另类国产一区二区三区 | 中文字幕在线精品乱码高清视频 | 亚洲日韩欧美一区久久久久久久 | 日韩精品亚洲专区第一页 | 色综合天天综合网在线观看 | 久久久一本精品99久久k精品66 |