av手机免费在线观看,国产女人在线视频,国产xxxx免费,捆绑调教一二三区,97影院最新理论片,色之久久综合,国产精品日韩欧美一区二区三区

JAVA認(rèn)證

Java考試格林練習(xí)題

時(shí)間:2024-09-23 21:39:58 JAVA認(rèn)證 我要投稿
  • 相關(guān)推薦

Java考試格林練習(xí)題

  question 11)

Java考試格林練習(xí)題

  what will be the result of attempting to compile and run the following code?

  abstract class minebase { abstract void amethod(); static int i;}public class mine extends minebase { public static void main(string argv[]){ int[] ar=new int[5]; for(i=0;i < ar.length;i++) system.out.println(ar[i]); }}

  1) a sequence of 5 0’s will be printed

  2) error: ar is used before it is initialized

  3) error mine must be declared abstract

  4) indexoutofboundes error

  question 12)

  what will be printed out if you attempt to compile and run the following code ?

  int i=1; switch (i) { case 0: system.out.println("zero"); break; case 1: system.out.println("one"); case 2: system.out.println("two"); default: system.out.println("default"); }

  1) one

  2) one, default

  3) one, two, default

  4) default

  question 13)

  what will be printed out if you attempt to compile and run the following code?

  int i=9;switch (i) { default: system.out.println("default"); case 0: system.out.println("zero"); break; case 1: system.out.println("one"); case 2: system.out.println("two");}

  1) default

  2) default, zero

  3) error default clause not defined

  4) no output displayed

【Java考試格林練習(xí)題】相關(guān)文章:

Sun java認(rèn)證考試答案10-23

CAD考試練習(xí)題07-17

華為Java上機(jī)考試題08-19

Java與Java web的區(qū)別08-22

sun java認(rèn)證考試題庫09-04

計(jì)算機(jī)等級(jí)考試二級(jí)Java語言考試大綱10-04

2017年java程序員考試試題07-05

新gre考試填空練習(xí)題透析07-10

2017跟單員考試練習(xí)題及答案05-12

單證員考試練習(xí)題09-05