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

正文內(nèi)容

java題庫—175道選擇題-wenkub

2023-04-08 04:57:58 本頁面
 

【正文】 。result=1。b)amp。 :   boolean a=false。   } 以上程序運行結(jié)果是: B CA、 Aclass    Aclass B、 Bclass    Bclass C、 Aclass    Bclass D、 Bclass    Aclass () DA、 每一個Java線程可以看成由代碼、一個真實的CPU以及數(shù)據(jù)三部份組成。    }   public static void main(String args[]){    Aclass a=new Aclass()。 } 哪些行會導(dǎo)致錯誤? A、 line 1 B、 line 2 C、 line 5 D、 line 8 : B DA、 /**...**/ B、 /*...*/ C、 // D、 /**...*/ 25. 欲編寫如下圖的一個界面,用于顯示用戶指定的圖像: 如果在區(qū)域A中只能放置一個AWT組件,從各組件的本來功能角度考慮,最好使用哪種組件:DA、 TextArea B、 Panel C、 Applet D、 Canvas 26. 界面如上題所示。 (() 10)) {   3) (more than 10)。    }   } 那個選項是正確的? AA、 編譯時將產(chǎn)生錯誤; B、 編譯時正確,運行時將產(chǎn)生錯誤; C、 輸出零; D、 輸出空。      s = a+b。   10) t2=new Test(j,k)。   7) int j,k。 }   最后一句語句的結(jié)果是: B CA、 將構(gòu)造一個Student對象; B、 表達式是合法的; C、 表達式是錯誤的; D、 編譯時正確,但運行時錯誤。   11} }   12} }   那些行將引起錯誤? DA、 第3行 B、 第6行 C、 第7行 D、 第8行;    Person p。 D、 public final int MAX_LENGTH=100. :  1) class Parent {   2} private String name。 9) } 10} } A、 line 4 B、 line 6 C、 line 7 D、 line 8, 變量值保持為常量100,用簡短語句定義這個變量。 4) while ( I 0 ) { 5) j = I * 2?! ublic static void main(String a[])   {    (arr[1])。 D、 RandomAccessFile in=new RandomAccessFile()。 (10)。  } } A、 第一行會產(chǎn)生編譯錯誤 B、 第六行會產(chǎn)生編譯錯誤 C、 第六行會產(chǎn)生運行錯誤 D、 程序會運行和啟動 文件中讀出第10個字節(jié)到變量C中,下列哪個方法適合? AA、 FileInputStream in=new FileInputStream()。g39。     (+ and )。c39。a39。 C、 long l=0xfffL。 《Java程序設(shè)計》理論題庫—選擇題(單選175題) D、 double=。,39。}。     ()。   } } A、 good and abc B、 good and gbc C、test ok and abc D、 test ok and gbc , 會產(chǎn)生什么結(jié)果 C Dpublic class X extends Thread implements Runable{  public void run(){   (this is run())。 (9)。 int c=()。 (9)。   } } 那個語句是正確的? CA、 編譯時將產(chǎn)生錯誤; B、 編譯時正確,運行時將產(chǎn)生錯誤; C 、輸出零; D、 輸出空。 6) ( The value of j is + j )。 DA、 public int MAX_LENGTH=100。   3} public Parent(){}   4} }   5) public class Child extends Parent {   6} private String department。    Teacher t。   1) public class Test {   2) int m, n。   8) j=0。   11) }   12) }  哪行將引起一個編譯時錯誤? DA、 line 3 B、 line 5 C、 line 6 D、 line 10 :   1) class Person {   2) public void printValue(int i, int j) {//... }   3) public void printValue(int i){//... }  4) }   5) public class Teacher extends Person {   6) public void printValue() {//... }   7) public void printValue(int i) {//...}   8) public static void main(String args[]){   9) Person t = new Teacher()。      return s。 ? BA、 public main(String args[]) B、 public static void main(String args[]) C、 private static void main(String args[]) D、 void main() : C  1) String str = null。   4) }   5) else if ((str != null) amp。若Button1的功能是:點擊后彈出一個用于輸入的界面,獲取用戶想要顯示的圖像文件名,則該界面最好是(從編程簡單和程序不易出錯的角度考慮): cA、 模式(Modal)Dialog B、 非模式(Nonemodal)Dialog C、 FileDialog D、 Frame 27. 界面如上題所示。    Aclass a1=new Bclass()。 B、 創(chuàng)建線程的兩種方法中,從Thread類中繼承的創(chuàng)建方式可以防止出現(xiàn)多父類問題。   boolean b=true。amp。 B、 c=true。 D、 c=false。    ()。   break。    void foo(double d,final float f){     String s。   (123,123)。37. 下面哪個語句不能定義一個字符變量( D )A、char c1=06477。 B、String s2=’null’ 。 B、float f2= 。42. 下面哪條語句定義了5個元素的數(shù)組( A )A、int [] a={22,23,24,25,12}。43. 下面哪個范圍是char型的取值范圍( c )A、256 ~ 255 B、(2^15) ~ (2^15)1 C、’\u0000’ ~ ‘\uffff’ D、 0~3276 String s4=args[4]。46. 給出一段程序,試判斷哪個是正確的結(jié)果( B )public class rtExcept{ public static void throwit(){(“throwit”)。 } catch(Exception re){ (“caught ”)。B、原因是沒有安裝JDK開發(fā)環(huán)境。 } finally{(“Finally executing”)。 D、char c3=”\u0065”。 D、String s4=(String) ‘\uface’。x++) names[x]=args[x]。 } finally{(“Finally executing”)。D、一個java文件中可以有多個class定義。 +=1。 B、y=7。C、原因是java源文件名后綴一定是以 .txt 結(jié)尾。C、構(gòu)造函數(shù)沒有返回值。int j。 C、 long l=0xfffL。a39。c39。     (+ and )。g39。  } } A、 第一行會產(chǎn)生編譯錯誤 B、 第六行會產(chǎn)生編譯錯誤 C、 第六行會產(chǎn)生運行錯誤 D、 程序會運行和啟動 文件中讀出第10個字節(jié)到變量C中,下列哪個方法適合? AA、 FileInputStream in=new FileInputStream()。 (10)。 D、 RandomAccessFile in=new RandomAccessFile()?! ublic static void main(String a[])   {    (arr[1])。 4) while ( I 0 ) { 5) j = I * 2。 9) } 10} } A、 line 4 B、 line 6 C、 line 7 D、 line 8 8數(shù)組中可以包含什么類型的元素?____D_______。 DA、 public int MAX_LENGTH=100。   3} public Parent(){}   4} }   5) public class Child extends Parent {   6} private String department。    Teacher t。   1) public class Test
點擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1