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

正文內(nèi)容

編程語(yǔ)言基礎(chǔ)知識(shí)-資料下載頁(yè)

2025-08-05 15:57本頁(yè)面
  

【正文】 …. } throw語(yǔ)句 。 與 c/c++相比 ,是 Java特有的語(yǔ)句 . 注釋語(yǔ)句 ? // 用于單行注釋 。 注釋從 //開(kāi)始 , 終止于行尾 。 ? /* … */ 用于多行注釋 。 注釋從 /*開(kāi)始 , 到 */結(jié)束 , 且這種注釋不能互相嵌套 。 ? /** … */ 是 Java所特有的 doc注釋 。 它以 /**開(kāi)始 , 到 */結(jié)束 。 這種注釋主要是為支持 JDK工具 javadoc而采用的 。 javadoc能識(shí)別注釋中用標(biāo)記 @標(biāo)識(shí)的一些特殊變量 , 并把 doc注釋加入它所生成的 HTML文件 。 試題 1 ? What will happen when you attempt to pile and run the following code? public class MyIf{ boolean b。 public static void main(String argv[]){ MyIf mi = new MyIf()。 } MyIf(){ if(b){ (The value of b was true)。 } else{ (The value of b was false)。 } } } 1)Compile time error variable b was not initialised 2) Compile time error the parameter to the if operator must evaluate to a boolean 3) Compile time error, cannot simultaneously create and assign value for boolean value 4) Compilation and run with output of false 試題 2 ? 請(qǐng)寫(xiě)出 testing()被調(diào)用時(shí)的輸出結(jié)果 void testing() { two: for (int i = 0。 i 3。 i++) { three: for (int j = 10。 j 30。 j+=10) { (i + j)。 if (i 2) continue one。 } } } 試題 4 ? 輸出結(jié)果 public class MySwitch { public static void main(String argv[]){ MySwitch ms= new MySwitch()。 ()。 } public void amethod(){ char k=10。 switch(k){ default: 試題 4續(xù) (This is the default output)。 break。 case 10: (ten)。 case 20: (twenty)。 break。 } } } 試題 5-輸出結(jié)果 ? int x = 1,y=2,i=0,j=0。 ? switch(x){ ? case 1: switch(y){ ? ? case 1: i++。 ? break。 ? case 2: j++。 ? break。 ? ? default: i++。 ? j++。 ? } ? break。 ? case 2: i++。 ? j++。 ? break。 ? default: i++。 ? j++。 ? } ? (i=+i)。 ? (j=+j)。
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1