freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

面向?qū)ο蟪绦蛟O(shè)計(jì)習(xí)題(文件)

 

【正文】 t i。 }}A) 實(shí)例變量i被設(shè)置成4 B) 實(shí)例變量i被設(shè)置成2C) 實(shí)例變量i被設(shè)置成0 D) 編譯錯(cuò) 給定以下代碼,請(qǐng)選擇一個(gè)正確的答案替換其中的注釋行。 C) super()。 }}A) 編譯和運(yùn)行都不會(huì)出錯(cuò) B) 編譯出錯(cuò)C) 運(yùn)行時(shí)拋出例外 考慮類定義:class BaseWidget extends Object{ String name = BaseWidget。 ()。 ()。 6) x = null。14) (x)。24) ()。(s2)。A) YES B) NO 下面哪些是合法的Java代碼片段?A) String a = abcdefg。C) Integer j = new Integer(27)。 一個(gè)應(yīng)用程序涉及以下方法:1) static String setFileType(String fname){2) int p = (39。4) fname += .TXT。 9) (“Created “ + theFile)。3) public String getSite(){4) return website。 (count)。}public void setCount(int ct,int n){ count[n]=ct。B) 輸出:Count is 0C) 拋出例外:ArrayIndexOutOfBoundsException,程序停止。a ()。C) i[a] = ((int)(x[a]))。 5) } catch(ArithmeticException e) { 6) try { 7) throw new ArithmeticException()。 15) } 16) }17) public static void main(String args[]) {18) try {19) m1()。 continue。 }}A) 編譯錯(cuò) B) 輸出s = 30C) 輸出s = 45 D) 輸出s = 50 給定以下代碼: public void trythis() { try { (1)。 }catch(Exception x) { (3)。}請(qǐng)問(wèn)當(dāng)方法trythis()被執(zhí)行時(shí),如果方法problem()拋出類Exception 的一個(gè)實(shí)例,那么哪些內(nèi)容將被輸出?A) 1 B) 2 C) 3 D) 4 E) 5第9章 線程與同步一、選擇題 編譯、運(yùn)行下面應(yīng)用程序會(huì)發(fā)生什么?public class RThread implements Runnable { public void run (String s ) { (Executing Runnable Interface Thread)。 }} A) 編譯出錯(cuò) B) 運(yùn)行出錯(cuò)C) 運(yùn)行時(shí)不輸出任何內(nèi)容 D) 輸出:Executing Runnable Interface Thread 分析下面代碼行,選擇一個(gè)正確的陳述。 }}A) 編譯錯(cuò) B) 能被編譯,運(yùn)行時(shí)沒(méi)有內(nèi)容輸出C) 能被編譯,運(yùn)行時(shí)輸出:hi D) 能被編譯,運(yùn)行時(shí)連續(xù)輸出:hi,直至用戶按下controlc鍵 下面有關(guān)與wait()配合使用的notify()方法的陳述,哪些是正確的?A) 如果有多個(gè)線程在等待一個(gè)條件,那么等待時(shí)間最長(zhǎng)的線程被喚醒。E) notify()方法調(diào)用只能出現(xiàn)在while循環(huán)語(yǔ)句中。 //A } public void run() { (running)。C) ()。 }}A) 。第10章 輸入與輸出一、選擇題 ? A) InputStream in=new FileInputStream(“”)。 下面哪個(gè)表達(dá)式能夠創(chuàng)建一個(gè)InputStreamReader流?A) new InputStreamReader(new FileInputStream(data))。 E) new InputStreamReader()。 D) new DataOutputStream(new FileOutputSream())。 } public int amethod() { try { FileInputStream dis = new FileInputStream()。 } return 0。 // 獲得包含字符串s中各字符編碼的字節(jié)數(shù)組 byte[] b = ()。 } ()。 i。import .*。 return 1。public class Mine { public static void main(String argv[]){ Mine m = new Mine()。 B) new DataOutputStream(new OutputStream())。 C) new InputStreamReader(new BufferedReader(data))。C) FileInputStream in=new FileReader(new File(“”))。C) RunHandler必須提供run()方法,該方法的訪問(wèn)級(jí)別為public、返回類型為void。 為使下面程序合法,下面有關(guān)RunHandle的陳述哪些是正確的?class Test { public static void main(String[] args) { Thread t = new Thread(new RunHandler())。 } void start(int i) { }}A) (running)。class RunTest implements Runnable { public static void main(String[] args) { RunTest rt = new RunTest()。C) notify()方法定義在Thread類中。 ()。 Thread t = new Thread (rt)。 }finally { (4)。 }catch(RuntimeException x) { (2)。 } finally { i = i + 2。22) }23) }24) }D) caught : demo in AAAB) caught : demo in BBBC) caught : demo in CCCD) caught . RuntimeException: demo in CCC 編譯和運(yùn)行以下程序會(huì)發(fā)生什么?class Test { public static void main(String args[]) {
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1