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

正文內(nèi)容

達(dá)內(nèi)jsd1510第一次月考題,java第一階段面向?qū)ο笳Z(yǔ)法基礎(chǔ)考試試題-資料下載頁(yè)

2025-03-26 04:28本頁(yè)面
  

【正文】 str=()。 int max_length = 0。 while (() 0) { 《插入代碼》 } length = ()。 char first=(0)。 String strNew = ((first), )。 if (length()) { max_length = length ()。 (first+:+max_length)。 } length = ()。 char first=(0)。 String strNew = ((first), )。 if (length()) { max_length = length ()。 str = strNew。 (first+:+max_length)。 } length = ()。 String first = (0, 1)。 String strNew = (first, )。 if (length()) { max_length = length ()。 str = strNew。 (first+:+max_length)。 } length = ()。 String first = (0, 1)。 String strNew = (first, )。 if (length()) { max_length = length ()。 (first+:+max_length)。 }正確答案:BC43.(多選)在Java語(yǔ)言中,下列說(shuō)法正確的是:()。 :StringBuffer是線程安全的而StringBuilder不是。 ,而StringBuffer中封裝的字符串?dāng)?shù)據(jù)是可以動(dòng)態(tài)改變的。 ,可以調(diào)用其equlas方法進(jìn)行比較。 ,重寫的邏輯是:字符序列相同的String對(duì)象equals方法返回true。正確答案:ABD44.(多選)下面的方法屬于StringBuffer的是:()。 正確答案:BCD45.(多選)請(qǐng)看下列代碼: public class Old { public static Object get(List list) { return (0)。 } } 以下選項(xiàng)調(diào)用get方法,能編譯通過(guò)的是: o = (new LinkedList())。 o = (new LinkedList?())。 s = (new LinkedListString())。 s = (String)(new LinkedListString())。正確答案:AD46.(多選)查看如下代碼: public class Foo { public void method(String str,int age){} } 下列選項(xiàng)中,和 Foo 類中 method 方法重載的方法是()。 int method(String str,int age){} void method(int year,String s){} int method(int year,String s){} int method(String str){}正確答案:BCD47.(多選)請(qǐng)看下列代碼: class One { public One foo() { return this。 } } class Two extends One { public One foo() { return this。 } } class Three extends Two { 插入代碼 } 下列選項(xiàng)中的代碼,放置在插入代碼處無(wú)編譯錯(cuò)誤的是: void foo() { } Object foo() { return this。 } Two foo() { return this。 } One foo() { return this。 }正確答案:CD48.(多選)所謂“水仙花”數(shù)是一個(gè)整數(shù)等于各位數(shù)字立方的和,例如:153 = 1*1*1+5*5*5+3*3*3,下面的程序用于輸出2~1000內(nèi)的水仙花數(shù): for (int n = 2。 n = 1000。 n++) { 空白處 if (s == n) { (n)。 } } 下列選項(xiàng)中,空白處可以填入的代碼是:()。 s = 0, n1 = n。 while (n1 0) { int t = n1 % 10。 s += t * t * t。 n1 /= 10。 } s = 0, n1 = n。 while (n1 0) { int t = n1 / 10。 s+= t * t * t。 n1 %= 10。 } s = 0。 for(int n1 = n。 n10。 n1 /= 10) { int t = n1%10。 s += t * t * t。 } s = 0。 for(int n1 = n。 n10。 n1 %= 10) { int t = n1 / 10。 s += t * t * t。 }正確答案:AC49.(多選)下列賦值語(yǔ)句中,會(huì)有編譯錯(cuò)誤的是()。 a = 8888888888。 b = 1000+300。 c = 100+30。 d = 39。a39。+39。b39。+39。c39。正確答案:AC50.(多選)下列邏輯表達(dá)式,值為false的是()。 A.abc,bcd,def,efg,.split([,]+).length == 4。 B.1st456.matches(\\d[azamp。amp。[^et]]{2,8}[09]+)。 C.abcdefghijklmnopqrstuvwxyz.substring(5,26).length() == 20。 D.whatisjava.equals(null)。正確答案:BCD
點(diǎn)擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1