多项选择题
A.run() B.join() C.wait() D.notify()
现有如下包结构: com |-- x | |-- Alpha.class | | | |-- y | |--...
现有如下包结构: com |-- x | |-- Alpha.class | | | |-- y | |-- Beta.class | |-- Gamma.class 和类: class Test { Alpha a; Beta b; Gamma c; } 哪三个必须加入到类 Test 中,以使其通过编译?()
A.package y; B.package com; C.import com.x.*; D.import com.x.y.*
现有包结构: com |-- x | |-- Alpha.class | | | |-- y | |-- B...
现有包结构: com |-- x | |-- Alpha.class | | | |-- y | |-- Beta.class | |-- Gamma.class 和类: //insert code here import com.*; import com.x.y.*; class Test { Alpha a; Beta b; Gamma c; } 哪两行分别插入后可允许代码编译?()
A.package com.; B.import com.x; C.package com.x; D.import com.x.Alpha;
现有两个源文件: package com.sun; public class PkgAccess { p...
现有两个源文件: package com.sun; public class PkgAccess { public static int tiger = 1414; } 和 import com.sun.PkgAccess; public class PkgAccess2 { int x1 = PkgAccess.tiger; int x2 = tiger; int x3 = com.sun.PkgAccess.tiger; int x4 = sun.PkgAccess.tiger; } 下面哪两项是正确的?()
A.PkgAccess2 类可编译。 B.由于第5 行发生错误编译失败。 C.由于第6 行发生错误编译失败。 D.由于第8 行发生错误编译失败。