logo - 刷刷题
下载APP
【判断题】

密封类不能实例化。()

A.
正确
B.
错误
举报
题目标签:实例化密封类
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三

【单选题】以下关于密封类的说法,正确的是( )

A.
密封类可以用作基类
B.
密封类可以是抽象类
C.
密封类永远不会有任何派生类
D.
密封类或密封方法可以重写或继承

【单选题】●工作流管理系统应用中,模型实例化阶段完成(29) 。(29)

A.
企业经营过程模型建立
B.
工作流建模工具选择
C.
运行所需参数设定
D.
人机交互和应用执行

【多选题】以下泛型类public class Generic<T> {private T t; public void setT(T t) {this.t = t; }public T getT() {return t;}}下面实例化是正确的有( )。

A.
Generic<String> f2 = new Generic<>();
B.
Generic<Integer> f4 = new Generic<Number>();
C.
Generic<Number> f3 = new Generic<Integer>();
D.
Generic<String> f1 = new Generic<String>();

【多选题】对于函数模板template void foo(T t) { // Do something }的显式实例化方法有

A.
template void foo(int);
B.
template void foo(double);
C.
template void foo(long);
D.
template void foo<>(char);