属于第二类防雷建筑物的是()。
A.预计雷击次数较大的工业建筑物
B.大型展览和博览建筑物
C.国家重点文件保护的建筑物
D.一般性民用建筑物
A.预计雷击次数较大的工业建筑物
B.大型展览和博览建筑物
C.国家重点文件保护的建筑物
D.一般性民用建筑物
第1题
已知如下代码: public class Test long a[]=new long[10] public static void main (String args[]{ System.out.println(a[6];} 以下()语句是正确的。
A.Output is null.
B.When running,some error will occur.
C.When compile,some error will occur.
D.Output is 0.
第2题
在下列源代码文件Test.java中,正确定义类的代码是()。
A.pblic class test { public int x=0; public test(int x) { this. x=x;} }
B.public class Test { public int x=0; public Test(int x) { this. x=x;} }
C.public class Test extends T1,T2{ public int x = 0; public Test(int x){ this. x = x; } }
D.protected class Test extends T2{ public int x = 0; public Test(int x) { this. x = x; } }
第3题
第4题
A、public Test() {?}
B、public static void Test() {?}
C、public void Test() {?}
D、public static Test() {?}
第5题
10、已知如下代码: class A{ public void doit() {} public String doit() { return "a"; } public double doit(int x) { return 1.0; } } 下面那个是正确的 A、无编译错误 B、代码public String doit() 出现编译错误 C、代码public double doit(int x) 出现编译错误 D、代码return "a";出现编译错误
第6题
在下列源代码文件Test.java中, ()是正确的类定义。
A.public class test{
B.public class Test{ public int x=0;public int x=0; public test (intx) public Test (int x){ {this.x=x; this.x=x;} }} }
C.public class Test extends T1,T2{
D.protected class Test extends T2{ public int=0;public int x=0; public Test(int x){Public Test (int x){ this.x=x;this.x=x: }} }}
第7题
已知如下代码:publicclassTest{publicstaticvoidmain(Stringarg[]){longa[]=newlong[10];System.out.Println(a[6]);}}下列选项正确的是()。
A.输出为null
B.输出为0
C.编译时出错
D.运行时出错
第8题
A、public void Test(){}
B、public Test() {}
C、public static Test(){}
D、public static void Test(){}
第9题
考虑如下代码,其中包括一个内嵌类: public final class Test4 { class Inner { void test() { if (Test4.this.flag) { sample(); } } } private boolean flag = false; public void sample() { System.out.println("Sample"); } public Test4() { (new Inner()).test(); } public static void main(String args []) { new Test4(); } } 结果为?
A、输出 "Sample"
B、程序无输出,但正确终止
C、程序不能终止
D、程序编译失败
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!