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

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

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

question 4)what will happen when you attempt to compile and run this code?

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 is not declared as abstract.
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 5)why might you define a method as native?

1) to get to access hardware that java does not know about
2) to define a new data type such as an unsigned integer
3) to write optimised code for performance in a language such as c/c++
4) to overcome the limitation of the private scope of a method

question 6)what will happen when you attempt to compile and run this code?

class base{
public final void amethod(){
system.out.println("amethod");
}
}

public class fin extends base{
public static void main(string argv[]){
base b = new base();
b.amethod();
}
}
1) compile time error indicating that a class with any final methods must be declared final itself
2) compile time error indicating that you cannot inherit from a class with final methods
3) run time error indicating that base is not defined as final
4) success in compilation and output of "amethod" at run time.

主站蜘蛛池模板: 中日韩一级黄色片 | 国产精品美女久久久久久久久久久 | 国产精品亚洲АV无码播放 闷骚的老熟女人15P | 日韩国产欧美精品一区二区三区 | 久久久精品99久久精品36亚 | 久久无码色综合中文字幕 | 欧美成人aaa级毛片在线视频 | 日本丰满大乳免费xxxx | 国产人人爱 | 色欲AV亚洲情无码AV蜜桃 | 国产精品白浆在线观看无码专区 | 69久久国产露脸精品国产 | 毛片a片免费观看 | 久久一区二区三区免费 | 国产视频色 | 一区二区免费视频中文乱码 | 国产欧美一级片 | 亚洲成年人在线 | 亚洲dvd| 久久爽久久爽久久免费观看 | 国产成人无码免费视频79 | 爱爱视频网站免费 | 午夜熟女插插XX免费视频 | 中国农村熟妇性视频 | 亚洲蜜芽在线精品一区 | 偷偷色噜狠狠狠狠的777米奇 | 亚洲一区二区三区中文字幕在线观看 | 天天躁人人躁人人躁狂躁 | 国产a级久久久 | 日韩乱码人妻无码系列中文字幕 | 日韩精品久久理论片 | 丰满人妻一区二区三区无码av | 可以免费观看的av | 国产精品免费观看视频 | 国产一区日韩 | 啪啪玩小处雏女毛免费 | 97精品国产97久久久久久粉红 | 人妻无码AV中文系列久久兔费 | 在线欧美色| AV无码A在线观看 | 亚洲成人手机在线观看 |