試卷測驗 - 104 年 - SCJP 201-244#99410-阿摩線上測驗
timmy剛剛做了阿摩測驗,考了3分
207.
A programmer must create a generic class MinMax and the type parameter of MinMax must implement
Comparable. Which implementation of MinMax will compile?
(A)
(B)
(C)
(D)
218. Place the code elements in position so that the Flags2 class will compile and make appropriate use of the wait/notify mechanism. Note You may reuse code elements.
228.
Which three will compile and run without exception? (Choose three.)
(A) private synchronized Object o;
(B)
(C) public synchronized void go(){/* code here */}
(D) private synchronized(this) void go(){/* code here */}
(E)
(F)
237. Place the code elements into the class so that the code compiles and prints "Run. Run. doIt. " in exactly that order. Note that there may be more than one correct solution.