中文一二三区_九九在线中文字幕无码_国产一二区av_38激情网_欧美一区=区三区_亚洲高清免费观看在线视频

首頁 > 考試輔導 > 計算機考試 > JAVA認證 > JAVA認證試題集錦 > JAVA題庫:格林模擬試題二(下)(1)

JAVA題庫:格林模擬試題二(下)(1)

question 31)what will happen when you attempt to compile and run the following code

import java.io.*;
class base{
public void amethod()throws filenotfoundexception{}
}

public class excepdemo extends base{
public static void main(string argv[]){
excepdemo e = new excepdemo();
}

public void amethod(){}
protected excepdemo(){
try{
datainputstream din = new datainputstream(system.in);
system.out.println("pausing");
din.readbyte();
system.out.println("continuing");
this.amethod();
}catch(ioexception ioe) {}

}
}
1) compile time error caused by protected constructor
2) compile time error caused by amethod not declaring exception
3) runtime error caused by amethod not declaring exception
4) compile and run with output of "pausing" and "continuing" after a key is hit

question 32)
what will happen when you attempt to compile and run this program

public class outer{
public string name = "outer";
public static void main(string argv[]){
inner i = new inner();
i.showname();
}//end of main
private class inner{
string name =new string("inner");
void showname(){
system.out.println(name);
}
}//end of inner class
}
1) compile and run with output of "outer"
2) compile and run with output of "inner"
3) compile time error because inner is declared as private
4) compile time error because of the line creating the instance of inner

主站蜘蛛池模板: 国产麻豆果冻在线播放 | 国产91精选在线观看网站 | 亚洲视频入口 | 四虎私人影院 | 日韩国产成人无码AV毛片 | 亚洲毛片无码专区亚洲乱 | 三年片免费观看在线播放动漫 | 成人在线观看小视频 | 一区二区在线亚洲 | 国产AV人人夜夜澡人人爽麻豆 | 欧美日韩国产成人 | av午夜久久蜜桃传媒软件 | 日本欧美一区二区免费不卡 | 456影院在线播放精品 | 国产女人40精品一区毛片视频 | 日韩中文字幕欧美 | 中文字幕无线乱码人妻 | 翘臀少妇被扒开屁股日出水爆乳 | 亚洲精品v欧美精品动漫精品 | 国产啊啊啊视频在线观看 | 久久午夜精品影院一区 | 无码国产精品久久一区免费 | 婷婷久久精品一区二区 | 亚洲精品无码成案A片在线 综合久久91 | 国产91色在线亚洲 | 免费无码不卡视频在线观看 | 国产高清视频一区二区在线观看 | 亚洲综合熟女久久久40P | 国产高潮呻吟久久渣男片 | 老师穿旗袍白丝让我爽翻天AV | 老师脱了内裤让我进去 | 在线免费黄色网 | 成年人黄色免费看 | 一区二区久久久久久 | 纳粹荒淫史 | 国产精品久久久久久一区二区 | 天天操夜夜噜 | 中文字幕二十三页2 | 久久精品中文字幕有码 | 无码一区二区波多野结衣播放搜索 | 九一视频在线免费观看 |