frnds
this code is not compiling giving error as there is no constructor in the class A which accepts B ..
my doubt is there is an Object type and every class extends Object so why there is a compilation error ...this is from dan question and the answer given is
b.some or all of the numbers 0 through 9 could be printed
c.There is no guarantee that anything will be printed
and one more doubt is at line 2.each
thread has their own object and acquire lock on it ??since it is not static !!!
please clarify....