1.

the static method Thread.currentThread() returns a reference to the currently executing Thread object. What is the result of this code?

A. Each String in the array lines will output, with no pause in between because this method is not executed in a Threa
B. Each String in the array lines will output, with a 1-second pause.
C. This code will not compile.
D. Each String in the array lines will output, and there is no guarantee there will be a pause because currentThread() may not retrieve this threa
Answer» D. Each String in the array lines will output, and there is no guarantee there will be a pause because currentThread() may not retrieve this threa


Discussion

No Comment Found