"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
SCJP 6.0 Passed | SCWCD Passed | PSM in progress...
first of all sorry for replying late.....i have not understood whether how come only one thread gets to execute???is it because of the assignment???
[code] Run1 r = new Run2();
Run2 r2 = (Run2) r; [/code]
r is a reference variable of Run1 and is pointing to object of Run2..and it is getting down casted in the next line..and it is getting assigned to Run2..so now r and r2 are same???
is this the reason that the same thread gets executed?????
thanks in advance...