• <sub id="h4knl"><ol id="h4knl"></ol></sub>
    <sup id="h4knl"></sup>
      <sub id="h4knl"></sub>

      <sub id="h4knl"><ol id="h4knl"><em id="h4knl"></em></ol></sub><s id="h4knl"></s>
      1. <strong id="h4knl"></strong>

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

        時(shí)間:2024-07-18 23:21:03 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

        《&.doc》
        将本文的Word文档下载到电脑,方便收藏和打印
        推荐度:
        点击下载文档

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

        Java考試格林模擬試題03-23

        java認(rèn)證考試介紹03-19

        java考試習(xí)題及答案03-26

        JAVA認(rèn)證考試細(xì)則03-19

        JAVA語(yǔ)言程序設(shè)計(jì)練習(xí)題03-26

        2017年java筆試練習(xí)題03-07

        sun java認(rèn)證考試介紹03-19

        java認(rèn)證考試細(xì)則介紹03-19

        java考試試題及答案10-25

        在线咨询
        国产高潮无套免费视频_久久九九兔免费精品6_99精品热6080YY久久_国产91久久久久久无码
      3. <sub id="h4knl"><ol id="h4knl"></ol></sub>
        <sup id="h4knl"></sup>
          <sub id="h4knl"></sub>

          <sub id="h4knl"><ol id="h4knl"><em id="h4knl"></em></ol></sub><s id="h4knl"></s>
          1. <strong id="h4knl"></strong>

          2. 亚洲欧美日韩一级在线 | 制服丝袜亚洲日韩欧美在线 | 最新先锋资源网站在线观看 | 久久婷婷综合激情亚洲狠狠 | 日韩视频中文字幕久久 | 日本综合网在线观看免费 |

            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