[java 将日期转化为格林时间]JAVA题库:格林模拟试题三(上)(2)

JAVA认证试题集锦 2021-07-18 网络整理 可可

【shitiku.jxxyjl.com--JAVA认证试题集锦】

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

本文来源:https://shitiku.jxxyjl.com/javarenzhengshitijijin/6479.html

Copyright @ 2011- 考试题库网 All Rights Reserved. 版权所有

免责声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。

 站长统计