亚洲精品成人18久久久久_日韩欧美色_江苏极品身材白嫩少妇自拍_曰本人做爰大片免费观看一老师_久草视频网_最近中文字幕MV高清在线视频

首頁 > 考試輔導 > 計算機考試 > 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

主站蜘蛛池模板: 色屁屁WWW免费看欧美激情 | 国产成人啪精品午夜网站 | 麻豆视频在线观看免费网站黄 | 青青青视频香蕉在线观看视频 | x8x8女性性爽爽在线观看 | 欧美久久综合网 | 久久亚洲综合精品99国产 | 超碰中文在线 | 好看的黄色录像 | 激情草逼 | 精品日本高清在线播放 | 日本三级无码中文字幕 | 久久国产精品-久久精品 | 久久1234 | 精品少妇一区二区三区在线视频 | 国产精品偷窥熟女精品视频 | 日韩色情一区二区无码AV | 四虎永久在线精品免费A | 亚洲欧美综合区自拍另类 | 女教师巨大乳孔中文字幕 | 色就是色网址 | 91精品婷婷色在线观看 | 国产好吊视频在线观看 | 夜夜撸网站 | 久草精品免费 | 日韩在线免费播放 | 国产精品视频免费看 | 国产亚洲成人av | 久久精品视频导航 | 欧美久久a | 不卡的在线视频 | 中文字幕日韩精品一区二区 | 粉嫩av一区二区三区四区五区 | 91视频影院| 99久久免费精品国产男女高不卡 | 成人免费无码成人影院日韩 | 欧美人与动人物xxxx | 久久男人的天堂 | 亚洲欧美成人在线 | 无码毛片一区二区本码视频 | 一区二区三区在线观看欧美 |