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

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

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

question 1)

what will happen when you attempt to compile and run this code

abstract class base{
abstract public void myfunc();
public void another(){
system.out.println("another method");
}
}

public class abs extends base{
public static void main(string argv[]){
abs a = new abs();
a.amethod();
}
public void myfunc(){
system.out.println("my func");
}
public void amethod(){
myfunc();
}
}
1) the code will compile and run, printing out the words "my func"
2) the compiler will complain that the base class has non abstract methods
3) the code will compile but complain at run time that the base class has non abstract methods
4) the compiler will complain that the method myfunc in the base class has no body, nobody at all to looove it

question 2)
what will happen when you attempt to compile and run this code?public class mymain{
public static void main(string argv){
system.out.println("hello cruel world");
}
}
1) the compiler will complain that main is a reserved word and cannot be used for a class
2) the code will compile and when run will print out "hello cruel world"
3) the code will compile but will complain at run time that no constructor is defined
4) the code will compile but will complain at run time that main is not correctly defined

question 3)which of the following are java modifiers?

1) public
2) private
3) friendly
4) transient
5) vagrant

主站蜘蛛池模板: 大黑香蕉在线视频国产 | 啪啪免费网 | 成人无码视频免费播放 | 国产精品乱轮 | 人妖被c到高潮欧美gay | 亚洲一区在线国产 | 日韩中文字幕第一页 | 久久99精品久久久久久清纯 | 午夜免费看片 | 国产黄色麻豆视频 | 狠狠干天天干 | 99久久久久久久 | 国产寡妇树林野战在线播放 | 777久久久免费精品国产 | 国产在线观看中文字幕 | 欧美一级欧美一级高清 | 热re99| 国产色视频一区 | 免费国产在线精品一区二区三区 | 无码亚洲成A∧人片在线播放 | 扒开双腿疯狂进出爽爽爽视频 | 国产∨亚洲V天堂无码久久久 | 亚洲精品午夜久久久 | 久在线观看视频 | 国语自产精品视频在线第100页 | 69xxxx在线观看 | 草莓香蕉视频在线观看 | 久久精品国产最新地址 | 91视频网国产 | 日本免费一区二区三区四区 | 99视频久久| 永久免费av在线 | 韩国久草| av午夜久久蜜桃传媒软件 | 色婷婷精品久久二区二区6 两个人日本WWW免费版 | 亚洲美女性视频 | 又黄又爽又色的视频 | 丁香激情综合色伊人久久 | 国产女人高潮叫床视频 | 国产3区 | 真人一毛片 |