单项选择题
A. check can never return true.
B. check can return true when setXY is called by multiple threads.
C. check can return true when multiple threads call setX and setY separately.
D. check can return true only if SyncTest is changed to allow x and y to be set separately.
单项选择题 package foo; public class Outer { public static class Inner { } } Which statement is true?()
单项选择题 class A { public A() { System.out.println(“hello from a”); } } class B extends A { public B () { System.out.println(“hello from b”); super(); } } public class Test { public static void main(String args[]) { A a = new B(); } } What is the result when main is executed?()
多项选择题 Whichtwoarebenefitsoffullyencapsulatingaclass?()