Originally posted by Shishio San:
One more thing Dan.
Question 23)
The comment about the answer is:
I think you didn't compelete it yet
Shishio,
Thank you for pointing that out. I just uploaded the correction.
The answer is "a. Prints: A".
The corrected answer is as follows.
If a Runnable target object is passed to the constructor of the Thread class, then the Thread.run method will invoke the run method of the Runnable target. In this case, the Thread.run method is overridden by A.run. The A.run method does nothing more than print the letter A. The invocation of the A.start method inside the main method results in the invocation of A.run and the letter A is printed. The B.run method is never invoked.