JAVA题库:格林模拟试题三(上)(2)

文章作者 100test 发表时间 2007:03:14 17:04:41
来源 100Test.Com百考试题网



question 6)
which of the following statements are true?
1) the instanceof operator can be used to determine if a reference is an instance of a class, but not an interface.
2) the instanceof operator can be used to determine if a reference is an instance of a particular primitive wrapper class
3) the instanceof operator will only determine if a reference is an instance of a class immediately above in the hierarchy but no further up the inheritance chain
4) the instanceof operator can be used to determine if one reference is of the same class as another reference thus



question 7)
which of the following statements are true?
1) an interface can only contain method and not variables
2) interfaces cannot have constructors
3) a class may extend only one other class and implement only one interface
4) interfaces are the java approach to addressing its lack of multiple inheritance, but require implementing classes to create the functionality of the interfaces.



question 8)
which of the following are valid statements
1) public class mycalc extends math
2) math.max(s).
3) math.round(9.99,1).
4)math.mod(4,10).



question 9)
which of the following are methods of the runnable interface
1) run
2) start
3) yield
4) stop

相关文章


SCEA:你需要知道哪方面的知识?
JAVA题库:格林模拟试题三(上)(3)
JavaThreadinJVM
线程基础---wait(),notify的应用一例
JAVA题库:格林模拟试题三(上)(2)
我的Java培训与学习之路
JAVA题库:格林模拟试题三(上)(1)
学习笔记之JAVA图形设计卷IAWT——第一章绪论
Java新手入门:整理SCJP听课笔记
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛