中文字幕在线一区二区在线,久久久精品免费观看国产,无码日日模日日碰夜夜爽,天堂av在线最新版在线,日韩美精品无码一本二本三本,麻豆精品三级国产国语,精品无码AⅤ片,国产区在线观看视频

      Sun java認(rèn)證考試真題答案

      時(shí)間:2024-09-25 10:44:04 毅霖 SUN認(rèn)證 我要投稿
      • 相關(guān)推薦

      Sun java認(rèn)證考試真題答案

        SUN認(rèn)證是給網(wǎng)絡(luò)設(shè)計(jì)界建立的一套認(rèn)證標(biāo)準(zhǔn),Sun公司推出了Java以及Solaris技術(shù)認(rèn)證方案。以下是小編整理的關(guān)于Sun java認(rèn)證考試真題答案,希望大家認(rèn)真閱讀!

      Sun java認(rèn)證考試真題答案

        Sun java認(rèn)證考試真題答案

        1. What gets printed when the following program

        is compiled and run?

        class Test {

        public static void main(String args[]) {

        int i;

        do {

        i++;

        } while (i < 0);

        System.out.println(i);

        }

        }

        Select 1 correct answer:

        A. The program does not compile as i is not initialized.

        B. The program compiles but does not run.

        C. The program compiles and runs but does not print anything.

        D. The program prints 0.

        E. The program prints 1.

        答案:A:如果沒(méi)有初始化便使用基本變量類(lèi)型,會(huì)導(dǎo)致編譯時(shí)異常,程序不能編譯。

        2. What gets printed when the following program

        is compiled and run?

        public class XYZ {

        public static void main(String args[]) {

        int i,j,k;

        for (i = 0; i < 3; i++)

        {

        for(j=1; j < 4; j++)

        {

        for(k=2; k<5; k++)

        {

        if((i == j) && (j==k))

        System.out.println(i);

        } } } } }

        Select 1 correct answer:

        A. 0

        B. 1

        C. 2

        D. 3

        E. 4

        答案:C

        3. Given the following code :

        class Base{}

        public class MyCast extends Base{

        static boolean b1=false;

        static int i = -1;

        static double d = 10.1;

        public static void main(String argv[]){

        MyCast m = new MyCast();

        Base b = new Base();

        //Here

        }

        }

        Which of the following, if ed at the comment //Here

        will allow the code to compile and run without error?

        Select 2 correct answers:

        A. b = m;

        B. m = b;

        C. d = i;

        D. b1 = i;

        解析:A 從子類(lèi)型到父類(lèi)型的轉(zhuǎn)換是擴(kuò)展引用轉(zhuǎn)換,不需要在運(yùn)行時(shí)采取特殊的動(dòng)作,不會(huì)在運(yùn)行時(shí)拋出異常。

        B 從超類(lèi)型到子類(lèi)型的轉(zhuǎn)換是收縮引用轉(zhuǎn)換,需要在運(yùn)行時(shí)執(zhí)行測(cè)試,以查明實(shí)際的引用值是否是新類(lèi)型的合法值.如果不是, 則會(huì)拋出ClassCascException 。在這里,b本身不是MyCast類(lèi)型的值,因此會(huì)導(dǎo)致運(yùn)行時(shí)異常。

        C 從int到double的轉(zhuǎn)換是擴(kuò)展基本轉(zhuǎn)換,基本類(lèi)型之間的擴(kuò)展轉(zhuǎn)換永遠(yuǎn)不會(huì)導(dǎo)致運(yùn)行時(shí)異常。但從int或long到float,或者是從long到double都可能導(dǎo)致精度丟失。

        D 不允許進(jìn)行int和boolean之間的類(lèi)型轉(zhuǎn)換

        答案:A、C

        4. Given the following classes which of the following

        will compile without error?

        interface IFace{}

        class CFace implements IFace{}

        class Base{}

        public class ObRef extends Base{

        public static void main(String argv[])

        {

        ObRef ob = new ObRef();

        Base b = new Base();

        Object o1 = new Object();

        IFace o2 = new CFace();

        }

        }

        Select 3 correct answers:

        A. o1 = o2;

        B. b = ob;

        C. ob = b;

        D. o1 = b;

        解析:A 任何對(duì)象都可以賦給Object類(lèi)型的對(duì)象,正確

        B 子類(lèi)賦給超類(lèi)是擴(kuò)展引用轉(zhuǎn)換,可以進(jìn)行

        C 收縮引用轉(zhuǎn)換,錯(cuò)誤

        D 擴(kuò)展引用轉(zhuǎn)換,可以進(jìn)行

        答案 A B D

        5. What is the result of compiling and running the following code?

        1 public class Test {

        2 static int total = 10;

        3 public static void main (String args []) {

        4 new Test();

        5 }

        6 public Test () {

        7 System.out.println("In test");

        8 System.out.println(this);

        9 int temp = this.total;

        10 if (temp > 5) {

        11 System.out.println(temp);

        12 }

        13 }

        14 }

        Select 1 correct answer:

        A. The class will not compile

        B. The compiler reports an error at line 2

        C. The compiler reports an error at line 9

        D. The value 10 is one of the printed elements

        E. The class compiles but generates a runtime error

        答案:D 由于test類(lèi)沒(méi)有override toString方法,故在調(diào)用println(this)時(shí)會(huì)直接顯示類(lèi)的有關(guān)信息。

        6. Carefully examine the following code:

        public class StaticTest {

        static { System.out.println("Hi there"); }

        public void print() {

        System.out.println("Hello");

        }

        public static void main(String args []) {

        StaticTest st1 = new StaticTest();

        st1.print();

        StaticTest st2 = new StaticTest();

        st2.print();

        }}

        When will the string "Hi there" be printed?

        Select 1 correct answer:

        A. Never

        B. Each time a new instance is created

        C. Once, when the class is first loaded into the JVM

        D. Only when the static method is called explicitly

        答案 C

        Java虛擬機(jī)規(guī)范約定,類(lèi)的初始化發(fā)生在首次主動(dòng)使用時(shí)。靜態(tài)變量和靜態(tài)初始化塊的先后,實(shí)際上取決于它們?cè)陬?lèi)中出現(xiàn)的先后順序。

        Sun認(rèn)證Java程序員(SCJP)考試科目

        考試方式: 全英文試題,以電腦作答,在授權(quán)的Prometric考試中心參加考試

        考試科目:Sun Certified Programmer for Java 2 Platform 1.2

        考試編號(hào):310-025

        考試題型:59道選擇題及簡(jiǎn)答題

        及格標(biāo)準(zhǔn):答對(duì)61%(36題)以上

        時(shí)限:120分鐘

        費(fèi)用:1500元

        考試科目:Sun Certified Programmer for Java 2 Platform 1.4

        考試編號(hào):310-035

        考試題型:59道選擇題及簡(jiǎn)答題

        及格標(biāo)準(zhǔn):答對(duì)61%(36題)以上

        時(shí)限:120分鐘

        費(fèi)用:1500元

        考試科目

        SCJP的四個(gè)科目310-025、310-035、310-055、310-056的區(qū)別如下:

        Sun Certified Programmer for Java 2 Platform 1.2(310-025)表明你掌握了JDK1.2的知識(shí)。

        Sun Certified Programmer for Java 2 Platform 1.4(310-035)表明你掌握了JDK1.4的知識(shí)。

        Sun Certified Programmer for the Java 2 Platform, Standard Edition 5.0(310-055)表明你掌握了JDK1.5的知識(shí)。

        Sun Certified Programmer for the Java 2 Platform, Standard Edition 5.0 Upgrade Exam(310-056)是從JDK1.2或JDK1.4升級(jí)到JDK1.5的考試。

        證書(shū)查詢(xún)

        一、具體操作流程:

        1、自考試通過(guò)后一個(gè)月左右,證書(shū)從美國(guó)Sun總公司到達(dá)Sun北京培訓(xùn)中心。

        2、工作人員根據(jù)人名單進(jìn)行數(shù)據(jù)庫(kù)輸入工作。

        3、將收到的證書(shū)與名單進(jìn)行核對(duì)。

        4、核對(duì)無(wú)誤后將發(fā)送一封郵件給考生索取中文信息。

        具體中文信息大概包括以下幾點(diǎn)內(nèi)容:

        (1)中文姓名 (5)考試號(hào)

        (2)考試日期 (6)聯(lián)系電話(huà)

        (3)考試類(lèi)別 (7)詳細(xì)中文地址 (郵政編碼)

        (4)電子郵件

        5、收到考生詳細(xì)中文信息后將證書(shū)寄出。

        二、如果考試后兩個(gè)月仍未收到證書(shū)或者索取中文信息的郵件,此時(shí)你可以進(jìn)行你的證書(shū)查詢(xún)。

        1、將個(gè)人中英文資料發(fā)郵件至:amity.xu@sunservices.com.cn

        2、收到你的郵件后,工作人員會(huì)先在遺留證書(shū)中查詢(xún)。

        3、確定沒(méi)有你的證書(shū)后,會(huì)將你全部的個(gè)人詳細(xì)資料發(fā)送郵件給美國(guó)總部,他們將會(huì)繼續(xù)查詢(xún)工作,并以電子郵件的方式和你進(jìn)行聯(lián)系。

        4、收到美國(guó)的電子郵件后,即可按照他們要求的方式提供資料或者其他信息,他們將會(huì)在最短的時(shí)間內(nèi)進(jìn)行您證書(shū)的補(bǔ)辦事宜。

        此一環(huán)節(jié)中所需的信息如下:

        (1)中文姓名 (拼音姓名)

        (2)考試日期

        (3)考試類(lèi)別

        (4)考試號(hào)

        (5)電子郵件

        (6)聯(lián)系電話(huà)

        (7)詳細(xì)中文地址 (郵政編碼)

        注:在您通過(guò)考試后的第二個(gè)月即可開(kāi)始證書(shū)查詢(xún),證書(shū)查詢(xún)時(shí)間為每周一至周四下午13:30-18:00

      【Sun java認(rèn)證考試真題答案】相關(guān)文章:

      2017年Java認(rèn)證考試真題及答案03-26

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

      Sun Java認(rèn)證考試科目03-19

      sun java認(rèn)證考試報(bào)考指南03-19

      SUN JAVA認(rèn)證介紹12-18

      Sun Java認(rèn)證考試教材教輔03-19

      Sun認(rèn)證Java開(kāi)發(fā)員考試介紹03-25

      sun認(rèn)證考試:Java.io的使用01-08

      sun java認(rèn)證報(bào)考指南03-08

      主站蜘蛛池模板: 蜜桃亚洲精品一区二区三区| 亚洲女同系列高清在线观看| 日韩精品一区二区三区中文9 | 久久精品国产亚洲精品色婷婷| 日本老年人精品久久中文字幕| 日韩女优一区二区视频| 日本二区三区视频免费观看| 亚洲日韩国产精品不卡一区在线| 国产爆乳美女娇喘呻吟久久| 国产一区二区亚洲一区二区三区 | 久久精品国产亚洲av成人擦边| 亚洲午夜久久久久中文字幕久| 清新县| 国产在线看不卡一区二区| 高清av一区二区三区在线| 久久久国产精品ⅤA麻豆百度| 久草国产手机视频在线观看| 好看午夜一鲁一鲁一鲁| 久久综合给合久久97色| 国产一区二区三区高清视频| 营山县| 宜春市| 瑞昌市| 沈阳市| 武安市| 国产极品视觉盛宴在线观看 | 亚洲女同系列高清在线观看| 广德县| 国产精品麻豆A啊在线观看| 国产91AV免费播放| 国产人妖av一级黄片| av手机在线天堂网| 人妻精品一区二区三区视频| 欧美成人高清手机在线视频| 亚洲激情在线观看第三页| 99熟妇人妻精品一区五一看片| 天天摸天天做天天爽天天舒服| 草莓视频中文字幕人妻系列| 黑人免费一区二区三区| 国产一区二区精品网站看黄| 91热国内精品永久免费观看|