亚洲欧洲国产欧美一区精品,激情五月亚洲色五月,最新精品国偷自产在线婷婷,欧美婷婷丁香五月天社区

      考試首頁(yè) | 考試用書(shū) | 培訓(xùn)課程 | 模擬考場(chǎng) | 考試論壇  
      全國(guó)  |             |          |          |          |          |         
        當(dāng)前位置:計(jì)算機(jī)等級(jí) > 二級(jí)考試 > Java語(yǔ)言程序設(shè)計(jì) > 模擬試題 > 文章內(nèi)容
        

      全國(guó)計(jì)算機(jī)等級(jí)考試Java試題及答案(25)

      中華IT學(xué)院   【 】  [ 2016年3月17日 ]

      (19)下列關(guān)鍵字可以表示常量的是()

      A  final  B  default   C  private  D  transient

      (20)在Java語(yǔ)言中,被稱為內(nèi)存分配的運(yùn)算符是()

      A  CardLayout        B.  GridLayout

      C  GridBayout        D   BoxLayout

      (21)閱讀下面程序

       Public class Cycle{

         Public static void main(String args[]){

         System.out.println(args[0]);

      }

      }

      在命令行輸入java Cycle one two,該程序輸出的結(jié)果是()

      A  Cycle    B  one  C  two  D 上述A.B.C均不對(duì)

      (22)閱讀下面程序

      Public class MyVal{

         Public static void main(String args[]){

         MyVal m=new MyVal();

        m.amethod();

      }

      Public void amethod(){

        Boolean b[]=new Boolean[5];

      }

      }

      程序編譯運(yùn)行結(jié)果是()

      A 1         B  null        C “”             D  編譯通不過(guò)

      (23)閱讀下面求質(zhì)數(shù)的程序

       import java.lang.Math.*;

       public class MorePrimesTest{

      public static void main(String args[]){

      long[] primes=new long[20];

      primes[0]=2L;

      primes[1]=3L;

      long number=5L;

      outer;

      four( int count=2;count

        long limit=(long)Math.ceil(Math.sqrt((double)numer);

        for(int i=1;i

      if (number__primes[i]==0L{

      continue outer;

      }

      }

      Primes[count++]number;

      For(int  j=0;j

        long n=primes[j];

        System.out.println(n;)

      }

      }

      }

      }

      在程序下畫(huà)線處輸入的正確選項(xiàng)是()

      A  &        B  *            C /       D  %

      (24)接口中,除了抽象方法外,還可以含有()

      A  變量        B 常量    C 成員方法     D 構(gòu)造方法

      分享到:
      本文糾錯(cuò)】【告訴好友】【打印此文】【返回頂部
      將考試網(wǎng)添加到收藏夾 | 每次上網(wǎng)自動(dòng)訪問(wèn)考試網(wǎng) | 復(fù)制本頁(yè)地址,傳給QQ/MSN上的好友 | 申請(qǐng)鏈接 | 意見(jiàn)留言 TOP
      關(guān)于本站  網(wǎng)站聲明  廣告服務(wù)  聯(lián)系方式  站內(nèi)導(dǎo)航  考試論壇
      Copyright © 2007-2013 中華考試網(wǎng)(Examw.com) All Rights Reserved