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

正文內(nèi)容

面向?qū)ο蟪绦蛟O(shè)計(jì)習(xí)題-資料下載頁(yè)

2025-06-07 22:50本頁(yè)面
  

【正文】 } (5)。}請(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)。 } public static void main ( String args []) { RThread rt = new RThread ( )。 Thread t = new Thread (rt)。 ( )。 }} A) 編譯出錯(cuò) B) 運(yùn)行出錯(cuò)C) 運(yùn)行時(shí)不輸出任何內(nèi)容 D) 輸出:Executing Runnable Interface Thread 分析下面代碼行,選擇一個(gè)正確的陳述。class WhatHappens implements Runnable { public static void main(String[] args) { Thread t = new Thread(this)。 ()。 } public void run() { (hi)。 }}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)的線程被喚醒。B) 如果有多個(gè)線程在等待一個(gè)條件,則無(wú)法預(yù)知哪個(gè)線程將被喚醒。C) notify()方法定義在Thread類中。D) 在調(diào)用一個(gè)對(duì)象的notify()方法時(shí),并非一定要獲得該對(duì)象的鎖。E) notify()方法調(diào)用只能出現(xiàn)在while循環(huán)語(yǔ)句中。 為了使下面的程序能夠輸出running,應(yīng)該用什么內(nèi)容代替注釋//A?請(qǐng)選擇所有正確的答案。class RunTest implements Runnable { public static void main(String[] args) { RunTest rt = new RunTest()。 Thread t =new Thread(rt)。 //A } public void run() { (running)。 } void go() { start(1)。 } void start(int i) { }}A) (running)。 B) ()。C) ()。 D) (1)。 為使下面程序合法,下面有關(guān)RunHandle的陳述哪些是正確的?class Test { public static void main(String[] args) { Thread t = new Thread(new RunHandler())。 ()。 }}A) 。B) RunHandler必須擴(kuò)展Thread類。C) RunHandler必須提供run()方法,該方法的訪問(wèn)級(jí)別為public、返回類型為void。D) RunHandler必須提供init()方法。第10章 輸入與輸出一、選擇題 ? A) InputStream in=new FileInputStream(“”)。B) InputStream in=new InputStreamFileReader (“”, “read”)。C) FileInputStream in=new FileReader(new File(“”))。D) FileInputStream in=new FileInputStream(new File(“”))。 下面哪個(gè)表達(dá)式能夠創(chuàng)建一個(gè)InputStreamReader流?A) new InputStreamReader(new FileInputStream(data))。 B) new InputStreamReader(new FileReader(data))。 C) new InputStreamReader(new BufferedReader(data))。 D) new InputStreamReader(data)。 E) new InputStreamReader()。 下面哪個(gè)表達(dá)式能夠創(chuàng)建一個(gè)DataOutputStream流 ? A) new DataOutputStream(new Writer())。 B) new DataOutputStream(new OutputStream())。 C) new DataOutputStream(new FileWriter())。 D) new DataOutputStream(new FileOutputSream())。,那么下面程序運(yùn)行將輸出什么內(nèi)容?import .*。public class Mine { public static void main(String argv[]){ Mine m = new Mine()。 (())。 } public int amethod() { try { FileInputStream dis = new FileInputStream()。 } catch(FileNotFoundException fne) { (No such file found)。 return 1。 } catch(IOException ioe) { } finally{ (Doing finally)。 } return 0。 }}A) No such file found B) No such file found ,1C) No such file found, doing finally, 1 D) 0 編譯和運(yùn)行下面程序?qū)a(chǎn)生什么結(jié)果?選擇一個(gè)最恰當(dāng)?shù)拇鸢?。import .*。class ls1 { public static void main(String[] args) throws IOException{ String s = Java語(yǔ)言。 // 獲得包含字符串s中各字符編碼的字節(jié)數(shù)組 byte[] b = ()。 for(int i=0。 i。 i++) { (b[i])。 } ()。 }}A) 編譯出錯(cuò) B) 連續(xù)輸出6個(gè)數(shù)據(jù)C) 連續(xù)輸出8個(gè)數(shù)據(jù) D) 輸出:Java語(yǔ)言
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1